• Post Reply Bookmark Topic Watch Topic
  • New Topic

Database refactoring for ORM

 
Valentin Pogrebinsky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have in our old client-server system with integer discriminator (referenced to hierarchically organized table of object types) in root entity(Objects), 4 level hierarchy and 15 child entity (Document (Invoice, Contract etc.)), Party (Person, Organization, Bank, etc.). It works through Oracle editable view with instead-of trigger and performs very well.

It looks like hibernate table-per-subclass approach but...
Hibernate approach to runtime calculating of classname by outer joining all child entity I think is rather expensive. Using discriminator with <subclass> limited by one level of hierarchy.

What do you think will be best approach to refactoring this kind of data for Hibernate?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!