Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Class Mapping with composite-id and joined-subclass  RSS feed

 
Luis Silveira
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I do a mapping on a class with an composite id and that extends another class? I'm using as ground http://www.javacodegeeks.com/2012/08/hibernate-composite-ids-with.html example. I've changed it and now when I try to insert data in I got an error.

Report.java




Report.hbm.xml





ReportSummary.java





ReportSummaryId.java





ReportSummaryDetailed.java





ReportSummary.hbm.xml


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!