[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1147) Support @EmbeddedId in EntityConverter

Keith Naas (JIRA) jira-events at lists.jboss.org
Thu Apr 5 08:32:58 EDT 2007


Support @EmbeddedId in EntityConverter
--------------------------------------

                 Key: JBSEAM-1147
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1147
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: JSF
    Affects Versions: 1.2.1.GA
            Reporter: Keith Naas


>From [http://jboss.org/index.html?module=bb&op=viewtopic&t=105810]

Looks like it might be as simple as changing this code in Entity

            if ( method.isAnnotationPresent(Id.class) || method.isAnnotationPresent(EmbeddedId.class) )
            {
               identifierGetter = method;
            }
         }
         
         if (identifierGetter==null)
         {
            for ( Field field: getBeanClass().getDeclaredFields() )
            {
               if ( field.isAnnotationPresent(Id.class)  || field.isAnnotationPresent(EmbeddedId.class) )
               {
                  identifierField = field;
               }
            }
         }



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list