You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Mark Struberg <st...@yahoo.de.INVALID> on 2016/11/02 05:44:16 UTC
Re: fetching associations
Hi!
I sounds like you did hit the classic lazy loading issue. eclipselink opens a connection again, but this is not specced. In Hibernate you will end up with a LazyInitializationException.
It's not an OpenJPA issue but the way transactions work in JavaEE by default.
For JSF I recommend to not use EJB transactions but a @RequestScoped EntityManager producer in CDI together with Apache DeltaSpike @Transactional.
Can add links later when on notebook.
lieGrue,
Strub
> Am 27.10.2016 um 21:07 schrieb gilbertoca <gi...@gmail.com>:
>
> I'm not entirely sure, but you need to make the enhancement of the entities
> [1].
>
> Regards,
>
> Gilberto
>
> [1]
> https://openjpa.apache.org/builds/2.4.1/apache-openjpa/docs/manual.html#ref_guide_pc_enhance
>
>
>
> --
> View this message in context: http://openjpa.208410.n2.nabble.com/fetching-associations-tp7589828p7589836.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.