This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I just want to know if we can implement OnetoMany and ManytoMany relation ships using @primarykeyJoinColumn. In EJB in Action OnetoMany and ManytoMany are implemented using @JoinColumn annotation where as OnetoOne is implemented by using both @JoinColumn and @primarykeyJoinColumn annotations.
It would be great if anybody can post the implementation part.
As far as relationships are concerned, @PrimaryKeyJoinColumn can only be applied to @OneToOne relationship, as it "joins" two entities by their primary keys. That's why it wouldn't make sence for ManyToXXX relationships (because primary keys are "unique").