I have a JPA-persisted object model that contains a many-to-one relationship: an Account has many Transactions. A Transaction has one
Account
Transactions
Transaction
In my case I was committing transaction when persist method was used. On changing persist to save method , it got resolved.