posted 11 years ago
Hi all,
I would just like to clarify the difference between the following 2 code samples from EJB3 in Action:
First code sample:
2nd Code Sample:
The 2nd code sample is missing the @JoinColumn.
So in the 1st case it would be possible to use the foreign key in the User table to locate the relevant Bid/s using SQL.
Whereas the 2nd case wouldn't have a foreign key BUT it would still be possible to access the relevant Bid/s through the User object's reference to a collection of Bids albeit only via JPQL this time?
===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===