openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi P Palacherla (JIRA)" <>
Subject [jira] Commented: (OPENJPA-453) Evicting embedded object nullifies statemanager
Date Tue, 30 Jun 2009 22:14:47 GMT


Ravi P Palacherla commented on OPENJPA-453:

Also the issue can be reproduced with a simple testcase.

Let's say you have an entity Book and it has a String title.

In your test code persist the entity book.
Let a reader thread do book.getTitle() in a while loop
a writer thread that will do a transactional book.setTitle() in a while loop.

Same Book obj is used throughout the sample.

In the above setup the test code will hang because of the issue explained in my previous comment.
Will try to create a JIRA test case for the above explanation and will attach it to this issue.


> Evicting embedded object nullifies statemanager
> -----------------------------------------------
>                 Key: OPENJPA-453
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>         Environment: Kodo 4.1.4, Ms sql server 2005, jTDS 1.2, jdk 1.6
>            Reporter: Christiaan
>            Assignee: Ravi P Palacherla
>         Attachments:,,
> I am noticing the following behaviour: If evict() is called on an embedded
> object the statemanager is nullified which is in contrast to non-embedded
> objects. Subsequently, calling JDOHelper.getPersistenceManager() on the
> evicted embedded object returns null. Is this the correct behaviour?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message