[ http://jira.andromda.org/browse/EJB-34?page=all ] Vance Karimi closed EJB-34: ---------------------------
Resolution: Fixed fix applied to cvs. thanks Torsten :) > EJB3: Entity only having associations gets a invalid construtor > --------------------------------------------------------------- > > Key: EJB-34 > URL: http://jira.andromda.org/browse/EJB-34 > Project: EJB Cartridge > Type: Bug > Reporter: Torsten Lunze > Assignee: Vance Karimi > Priority: Trivial > > An entity without any attributes but associations gets a constructor of this > form: > public TestEntity(,Type1 assoc1, Type2 assoc2) > I changed > #if(!$allAttributes.empty), #end# > into > #if(!$transform.filterUpdatableAttributes($allAttributes, > $entity.compositePrimaryKeyPresent).empty), #end > in the 3rd construtor (POJO + CMR relations) > This works. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642