JPA 2.0 EclipseLink Check for unique
- by Parhs
Hello...
I have a collumn as unique=true.. in Exam class....
I found that because transactions are commited automaticaly so to force the commit i use
em.commit()
However i would like to know how to check if it is unique.Running a query isnt a solution because it may be an instert after checking because of the concurency....
Which is the best…