update gorm to use new entity abstraction

now both hibernate and gorm extend the same class