[jboss-cvs] jboss-seam/examples/registration/src/org/jboss/seam/example/registration ...

Gavin King gavin.king at jboss.com
Wed Oct 11 22:49:36 EDT 2006


  User: gavin   
  Date: 06/10/11 22:49:36

  Modified:    examples/registration/src/org/jboss/seam/example/registration 
                        RegisterAction.java
  Log:
  make query syntax comply with noisy spec syntax
  
  Revision  Changes    Path
  1.15      +2 -2      jboss-seam/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RegisterAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/registration/src/org/jboss/seam/example/registration/RegisterAction.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- RegisterAction.java	28 Sep 2006 00:36:56 -0000	1.14
  +++ RegisterAction.java	12 Oct 2006 02:49:36 -0000	1.15
  @@ -1,4 +1,4 @@
  -//$Id: RegisterAction.java,v 1.14 2006/09/28 00:36:56 gavin Exp $
  +//$Id: RegisterAction.java,v 1.15 2006/10/12 02:49:36 gavin Exp $
   package org.jboss.seam.example.registration;
   
   import java.util.List;
  @@ -29,7 +29,7 @@
      
      public String register()
      {
  -      List existing = em.createQuery("select username from User where username=:username")
  +      List existing = em.createQuery("select u.username from User u where u.username=:username")
            .setParameter("username", user.getUsername())
            .getResultList();
         if (existing.size()==0)
  
  
  



More information about the jboss-cvs-commits mailing list