Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate transaction for subclass

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic