[ http://jira.andromda.org/browse/EJB-67?page=comments#action_14652 ]
Leandro Hermida commented on EJB-67: ------------------------------------ Sorry I just noticed another problem with the existing implementation. Not only does it not put a suffix like _ID or _IDC which we are trying to solve but it also doesn't put underscores in the right places. For example: Document 0..* ------------> 0..1 SoftwareProject yields in Document.java: @javax.persistence.JoinColumn(name = "SOFTWAREPROJECT") but we want: @javax.persistence.JoinColumn(name = "SOFTWARE_PROJECT_IDC") > Improved JoinColumn name for OneToOne and ManyToOne assocation annotations in > EJB3 cartridge > -------------------------------------------------------------------------------------------- > > Key: EJB-67 > URL: http://jira.andromda.org/browse/EJB-67 > Project: EJB Cartridge > Type: Improvement > Reporter: Leandro Hermida > Assignee: Vance Karimi > Priority: Minor > > At present the JoinColumn name create by the EJB3 cartridge for OneToOne and > ManyToOne association annotations uses only the target table name as the > column name which is confusing since this column will hold FK data and thus > is an ID column. Following discussion in the forum, > http://galaxy.andromda.org/forum/viewtopic.php?t=4909, we think its a good > idea to append an _ID suffix or similar to this JoinColumn name. -- 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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/