i'm having the same problem than kai222. 
When i try to load a user, i need to validate that don't exists añother user 
with the same name, bue when i execute the query to validate that, before to do 
the SELECT, it make a flush persisting the user without validate the name.
In pseudocode


  |    persist() {
  |       validate() //here i make a query to validate if exists another user 
with 
  |                     // the same name, but before execution of the query, 
make a           
  |                    //flush and persist the object without validate
  |       if( isValid )
  |           persist()
  |       else
  |           errorMessage()
  | }
  | 

thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125124#4125124

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125124

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to