History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-68
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Vance Karimi
Reporter: Leandro Hermida
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

EJB3 foreignKeySuffix namespace value not being applied

Created: 16/Jul/07 03:15 PM   Updated: 21/Aug/07 04:36 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
Following discussion in forum:

http://galaxy.andromda.org/forum/viewtopic.php?t=4726 and
http://galaxy.andromda.org/forum/viewtopic.php?p=23042


 All   Comments   Change History      Sort Order:
Comment by Roland Burgermann [18/Jul/07 02:35 PM]
This forum topic is about the same problem: http://galaxy.andromda.org/forum/viewtopic.php?t=4733

Comment by Leandro Hermida [18/Jul/07 02:59 PM]
Hi,

Now I am confused after reading this other thread. I see two issues here which need to be resolved:

1) Users need a mechanism to control foreign key *column* names
2) Users need a mechanism to control foreign key *constraint* names

We have two namespace properties and a tagged value:

foreignKeySuffix
constraintSuffix
@andromda.persistence.foreignkey.constraint


From my use of the EJB3 cartridge *none* of the above 3 tools affect the foreign key constraint name. They only affect the foreign key column name. Is something broken or not implemented right?

-Leandro

Comment by Vance Karimi [08/Aug/07 04:32 PM]
I'm thinking we should use @andromda.persistence.column to explicitly define the foreign key column name and @andromda.persistence.foreignkey.constraint to explicityly define the foreign key constraint name. I've made a few changes locally and will need to test further before committing.

Also, I think it makes more sense to have _FK as the suffix for the FK column name instead.

Comment by Vance Karimi [21/Aug/07 04:36 PM]
Fix now in cvs. Pls read the cartridge relationship howto for further info.