In EJB in Action book on page number 288 the Joined Table strategy is explained and it is implemented by the OnetoOne relationships between the Child and parent class.
Here the code given on this page
I just want to know why the referencedColumnName element is missing in the @PrimarykeyJoinColumn annnotation.
It seems like referencedColumnName element can be missing in @OneToOne @JoinColumn too. What confusing me is when I point out the referencedColumnName I encounter an error because the referenced column is generated with a wrong type.
SCJP,SCWCD1.3,SCWCD1.4,SCJD,SCBCD5,SCEA5
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop