[jboss-user] [JBoss Seam] - Re: FlushModeType.MANUAL in conversation

juangiovanolli do-not-reply at jboss.com
Thu Jan 31 07:43:45 EST 2008


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




More information about the jboss-user mailing list