Is there a way to filter children of a mapped relationship?
For example, I have a simple 3-tiered object structure,
Person --(OneToOne)--> AddressChain --(OneToMany using a simple 2 column
join table)--> Address
In the interest of keeping historical data, I use a status column on records
in
Yes, that is possible, and it works nicely, thanks. Through additional
testing I found that the earlier problems I was having (not getting fetch
groups to work at all), were only when I would modify the fetch groups and
fields on the OpenJPAQuery.getFetchPlan() plan. That doesn't seem to work
at
Okay, I figured out the problem. The FetchGroup doesn't actually let me
dictate between fetching or not fetching a specific property. Rather, it
only lets me mark fields as lazily vs. eagerly loaded. So, when I was
calling the getter it was making a separate call to the database to populate
my
FetchGroups do seem to be exactly what I'm looking for. At any rate,
although I am able to successfully remove and add fetch groups from my
query, it doesn't seem to affect what data is populated. I am running
OpenJPA 1.0.3 on JDK 1.5/5.0. Can you take a peek and see if you see
anything obvious
Is there a way to partially populate a POJO in dynamic fashion (i.e. without
using transient modifiers or annotations)? For example, I may want to
populate my POJO's name and id in one situation, and yet populate name, id,
and createDate in another. Such as, entityManager.createQuery("SELECT
MO.