Internal Website Search

91-100 of 172 resultsRefresh

Optimistic locking: prevent version increment on entity collection attribute

is that the entity is detached between the calls, check this issue and the no-detach solution. > I have tried to clear the entity manager in ... clear detaches managed objects and could make things harder in this case

@OneToMany(fetch = FetchType.LAZY) list is always null

objects are detached and lazy relationships cannot be used, if not already loaded before ... objectdb.temp.no-detach. Vladiator Vlad Myachikov Thank you! It works (as ... to the no-detach option then the same test case should work differently, depending if that option

Possible cause for "Enhancement of type ... is old and cannot be used"

persistence of a very simple entity model) when I was using the experimental mode 'objectdb.temp.no-detach ... (at least older than objectdb-2.6.3_04), and only when I had 'objectdb.temp.no-detach' true. When I had 'objectdb.temp.no-detach' false, I got the same error that I reported at this new issue

JDOHelper.isDetached failure ?

).execute(); TestClass first = list.get(0); TestClass detached = pm.detachCopy(first); System.out.println(JDOHelper.isDetached(detached)); pmf.close(); } With this as the persistent class: @PersistenceCapable(detachable

List of Enum Values in an entity

is invoked in this tutorial on detached Guest instances, and in detach">detached objects only fields that have been loaded before detachment (e.g. defined as eager rather than lazy, or accessed) are available. One way

Updating existing persistence entries

="/java/jpa/persistence/detach">detached object is modified, it has detach#explicit_merge">to be merged (maybe merge is your missing method ... the beans, and then you do not have detached objects and merge is not required. This is how ObjectDB

JOD problems regarding detachCopy()

-loading that object from the db 3-creating a detached copy 4-closing the connection 5-modifying the detached copy 6-re-opening the connection 7-saving the detached copy I get an "Attempt to reuse an existing primary key value" error. I

Is there any restriction when using fetch=FetchType.LAZY ?

line: em.detach(this);   Regards, -- On detach some unloaded fields ... yet, as detached objects cannot handle automatic loading on access. See

Accessing objects to make them available after EntityManager close?!

/detach">detached, and in detached objects only fields that have already been loaded when the  ... ">"objectdb.temp.no-detach" extension. support Support

Tracking changes to new collections (in enhancement mode) after flush

.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap<String, List ... , cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element