Issue Details (XML | Word | Printable)

Key: NUCJPA-34
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Li Yan
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

Calling EntityTransaction.begin twice in a row results in PersistenceException, however javadoc says IllegalStateException is expected

Created: 14/Aug/09 10:01 PM   Updated: 11/Sep/09 08:42 AM   Resolved: 20/Aug/09 10:22 AM
Component/s: API
Affects Version/s: 1.1.4
Fix Version/s: 2.0.0.m2

Datastore: Other

 Description  « Hide
In the javadoc above, it is mentioned that
void begin()
    Start the resource transaction.
        java.lang.IllegalStateException - if isActive() is true.

However the code below in google appengine datastore throws javax.persistence.PersistenceException

EntityTransaction tx;

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 20/Aug/09 10:22 AM
SVN trunk has this.
Won't be applied to 1.1