openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
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 <cnd@cndavies.com> 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.
http://www.6degrees.com
mailto:daryl@6degrees.com

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