[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[eclipselink-users] Newbie mapping question
- From: SerFingolfin <paolo.trisio@xxxxxxxxx>
- Date: Thu, 11 Sep 2008 03:26:33 -0700 (PDT)
- Delivered-to: email@example.com
Hi to everybody.
My project works on two entities with a "one to many" relation.
A entity defines a collection of B elements as described here :
@OneToMany(cascade = CascadeType.ALL, mappedBy = Bkeyname, fetch =
private Collection bcollection;
And B relates to A like this:
@JoinColumn(name = Bkeyname, referencedColumnName = Akeyname)
private A relateda;
Fetch = FetchType.EAGER should grant me that every "find" operation
on A should retrieve every B entity related to A, am i wrong?
This is not happening in my project! I always see null values on B
what am i doing wrong?
Thanks in advance
View this message in context: http://www.nabble.com/Newbie-mapping-question-tp19430896p19430896.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.