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
Don't pass id(pk) to persist method or try save() method instead of persist().