Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] finding objects in the changeset

If you have a breakpoint set at IllegalStateException, typically the
non-persisted new object will be in the local variable named "object".


On Thu, Sep 3, 2009 at 9:57 AM, James Sutherland<jamesssss@xxxxxxxxx> wrote:
>
> >From the EntityManagerImpl you can get the UnitOfWork (getUnitOfWork()), then
> you can cast to UnitOfWorkImpl if need be, and get the new objects
> (getCloneToNewObjects() I think), or get the current UnitOfWorkChangeSet
> (getUnitOfWorkChangeSet() I think)).
>
> You could also define a prePersist event to perhaps log a trace to the
> persistent object.
>
>
>
> DavidParker wrote:
>>
>> I am trying to track down an error in our code that is resulting in an
>> illegalState exception (something is not marked Cascade.PERSIST). I'd
>> like to use the debugger to see what objects eclipselink has in the
>> add/change bucket.
>>
>> Can somebody tell me where to look in the object graph for this
>> information (presumably starting at the EntityManagerImpl)?
>> =============================================
>> David Parker
>> dap@xxxxxxxxxxxxxxxxxxxx
>>
>>
>
>
> -----
> http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
> http://www.eclipse.org/eclipselink/
>  EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
> TopLink
> Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink ,
> http://wiki.oracle.com/page/TopLink TopLink
> Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
> http://www.nabble.com/EclipseLink-f26430.html EclipseLink
> Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
> --
> View this message in context: http://www.nabble.com/finding-objects-in-the-changeset-tp25178382p25276651.html
> Sent from the EclipseLink - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>


Back to the top