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
 Assigned to: 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


Reply via email to