openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: Lazy many-to-many properties don't load on demand? (2.1.1)
Date Tue, 27 Dec 2011 21:35:10 GMT
How are you enhancing your entities and can you post the contents of your
persistence.xml?
On Dec 27, 2011 1:37 PM, "Pawel Veselov" <pawel.veselov@gmail.com> wrote:

> Hi.
>
> On Tue, Dec 27, 2011 at 8:42 AM, Pinaki Poddar <ppoddar@apache.org> wrote:
>
> > > @ManyToMany(fetch = FetchType.LAZY, mappedBy = "categories")
> > > public Collection<E_App> apps;
> >
> > change 'public' to 'private'
> >
>
> I will try this tonight. Any reason why? I typically access the fields
> directly, without getters. Would that not work for any other fields loaded
> lazy as well? The only other ones I have declared LAZY are LOBs.
>
> Thank you,
>  Pawel.
>
>
> >
> > -----
> > Pinaki Poddar
> > Chair, Apache OpenJPA Project
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message