UnsupportedOperationException « Transaction « JPA Q&A





1. java.lang.UnsupportedOperationException in JPA transaction    stackoverflow.com

I'm pretty sure that I'm not understanding something about JPA (I'm using OpenJPA) and it's causing this problem. I want to make a copy of a Job entity.

@Entity
@Table(name="Job")
public class Job ...

2. Regarding the UnsupportedOperationException in hibernate    stackoverflow.com

can you please tell me solution steps for the following exception

 RegisteredSyn E   WTRN0074E: Exception caught from before_completion synchronization operation: java.lang.UnsupportedOperationException
    at org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter$TransactionAdapter.setRollbackOnly(WebSphereExtendedJTATransactionLookup.java:211)
   ...