org.meri.jpa.tutorial
org.meri.jpa.tutorial copied to clipboard
Examples and test cases for JPA tutorial.
I came to this repo from the [stackoverflow posting](https://stackoverflow.com/questions/13370221/persistentobjectexception-detached-entity-passed-to-persist-thrown-by-jpa-and-h) Between [SafePerson](https://github.com/SomMeri/org.meri.jpa.tutorial/blob/master/src/main/java/org/meri/jpa/relationships/entities/bestpractice/SafePerson.java) and [SafeTwitterAccount ](https://github.com/SomMeri/org.meri.jpa.tutorial/blob/master/src/main/java/org/meri/jpa/relationships/entities/bestpractice/SafeTwitterAccount.java), there is method calls in the order 1. SafeTwitterAccount.addFollower(SafePerson follower) => follower.startFollowingTwitter(this); 2. SafePerson.startFollowingTwitter(SafeTwitterAccount account) =>...