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]
