Register / Login
Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of
Think Java: How to Think Like a Computer Scientist
this week in the
Java in General
Object Relational Mapping
Hibernate transaction for subclass
Kaustubh G Sharma
posted 2 years ago
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..
how, possibly, to encapsulate at the level of objects?
Passed JPA certification with 94% score