openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <>
Subject Re: EntityManager used in multiple threads
Date Fri, 18 Sep 2009 12:45:52 GMT
On Fri, Sep 18, 2009 at 8:37 AM, C N Davies <> wrote:

> On this point,  I just use reflection to get the setters/getter and call
> the
> new entity's setters against the getters on my detached entity, it's pretty
> fast and then you can merge the new entity with the old one.

Yes, something like Apache commons Bean Utils could help with this, though
I'm not sure how you'd handle collections. A generic "self refresh" function
would load in collections as well, unless you read the JPA annotations to
get the FetchType, that would be cool.

Daryl Stultz
6 Degrees Software and Consulting, Inc.

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