• Post Reply Bookmark Topic Watch Topic
  • New Topic

HBM to Annotation: Foreign Generator

 
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:

 
when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!