• Post Reply Bookmark Topic Watch Topic
  • New Topic

HBM to Annotation: Foreign Generator  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following in an hbm file:


I've been searching on how to map that using annotations (JPA/Hibernate). Where this object's PK is a FK to Project's PK. And no, I don't have the option of not doing it this way.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I might have found the solution. I'd appreciate some confirmation on this approach:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!