EJB3: ManyToMany Association generates JoinTable with identical colum names
---------------------------------------------------------------------------

         Key: EJB-25
         URL: http://jira.andromda.org/browse/EJB-25
     Project: EJB Cartridge
        Type: Bug

 Environment: EJb3 Cartridge (latest from CVS), Androdma 3.2 Snapshot of May 
14th 2006. 
    Reporter: Torsten Lunze
 Assigned to: Chad Brandon 
    Priority: Minor


When modelling an unidirectional ManyToMany association the EJB3 cartridge is 
generating the following JointTable annotation for the property:

 @javax.persistence.JoinTable (
    ...
        joinColumns = [EMAIL PROTECTED](name = "ID")},
        inverseJoinColumns = [EMAIL PROTECTED](name = "ID")}
  )

The column names should be named different (easily just adding a 1 and 2 
respectivly to the EntityEmbeddable.vsl template) or let the name depend on a 
tagged value or the association ends.

(see also http://galaxy.andromda.org/forum/viewtopic.php?p=12852#12852)

-- 
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



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642

Reply via email to