tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwaastad <he...@waastad.org>
Subject Re: question around entityManager.flush
Date Sat, 24 May 2014 17:04:58 GMT
A little late on this one:

I guess you can do two things:

1. lookup entity, set property (no need for edit/merge)

2. merge the passed-over entity (since its already in the
PersistencyContext)

(I usually lookup the passed-over entity just to validate and throw a custom
exception if something fishy is going on :-) )

br hw



--
View this message in context: http://openejb.979440.n4.nabble.com/question-around-entityManager-flush-tp4669413p4669641.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message