You can read the parameter and return types from the methods to work out what the types are.
-----Original Message----- From: Daryl Stultz [mailto:[email protected]] Sent: Friday, 18 September 2009 8:46 PM To: [email protected] Subject: Re: EntityManager used in multiple threads On Fri, Sep 18, 2009 at 8:37 AM, C N Davies <[email protected]> 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:[email protected]
