unique « Transaction « JPA Q&A





1. Lost transaction with JPA unique constraint?    stackoverflow.com

I have a field with an unique constraint:

@Column(unique=true)
private String uriTitle;
When I try to save two entities with the same value, I get an exception - but another exception than I exected:
java.lang.IllegalStateException: ...

2. how to avaoid running into violating unique constraints using hibernate?    stackoverflow.com

I have a database table which has a unique constraint defined on one of its columns. I also have a message processing system with multiple threads. As the messages are being ...

3. JPA concurrent INSERT violating unique constraint    java.net

Hi, Most users enter my application by clicking a link in an email. Many don't realize that you only need to single click links on the Internet so they double or even tripple click. This causes multiple browser windows to open at the same time and load their data. This usually does not cause a problem, but when something is wrong ...

4. JPA concurrent INSERT violating unique constraint    java.net

Most users enter my application by clicking a link in an email. Many don't realize that you only need to single click links on the Internet so they double or even tripple click. This causes multiple browser windows to open at the same time and load their data. This usually does not cause a problem, but when something is wrong with ...