my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes Hibernate transaction for subclass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate transaction for subclass" Watch "Hibernate transaction for subclass" New topic
Author

Hibernate transaction for subclass

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

how to do below task in Hibernate?

I have class Account and two subclaases SavingAccount and LedgerAccount.

In DB side I have table Account in which I need ti maintain SavingAccount and LedgerAccount details in a column called AccountType.

What will be the entry in xml and how we do insert transaction for same.


No Kaustubh No Fun, Know Kaustubh Know Fun..
 
Don't get me started about those stupid light bulbs.
 
subject: Hibernate transaction for subclass
 
Similar Threads
Passed JPA certification with 94% score
how, possibly, to encapsulate at the level of objects?
Design Question
java.lang.Nullpointer Exception
Transaction Level