condition « Column « JPA Q&A





1. Unique columns, Race conditions and Friendly Error    forum.hibernate.org

Hello, I am fairly new to hibernate, I have only used it to do simple things so far. My scenario is this: I will have a table of users, the user.Name property is a unique column. What strategy should i take to ensure that there isnt a violation of the unique constraint and also tell the user that the name was ...

2. Unique columns, "race condition"    forum.hibernate.org

Hi everyone. I have the following situation: suppose I have an application that allows users to register if they don't have an account yet. The form takes the new user's login and password, and passes that to a method in an instance of a stateful session bean (User is an entity, and the specs state login should be unique accross the ...