[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...

Gavin King gavin.king at jboss.com
Thu Jun 28 19:54:05 EDT 2007


  User: gavin   
  Date: 07/06/28 19:54:05

  Modified:    src/main/org/jboss/seam  Entity.java
  Log:
  fix bug
  
  Revision  Changes    Path
  1.10      +2 -2      jboss-seam/src/main/org/jboss/seam/Entity.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Entity.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Entity.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- Entity.java	26 Jun 2007 01:13:28 -0000	1.9
  +++ Entity.java	28 Jun 2007 23:54:05 -0000	1.10
  @@ -42,7 +42,7 @@
         for ( Class<?> clazz=beanClass; clazz!=Object.class; clazz = clazz.getSuperclass() )
         {
   
  -         for ( Method method: getBeanClass().getDeclaredMethods() )
  +         for ( Method method: clazz.getDeclaredMethods() )
            {
               //TODO: does the spec allow multiple lifecycle method
               //      in the entity class heirarchy?
  @@ -79,7 +79,7 @@
            
            if (identifierGetter==null)
            {
  -            for ( Field field: getBeanClass().getDeclaredFields() )
  +            for ( Field field: clazz.getDeclaredFields() )
               {
                  if ( field.isAnnotationPresent(Id.class) || field.isAnnotationPresent(EmbeddedId.class))
                  {
  
  
  



More information about the jboss-cvs-commits mailing list