[ http://jira.andromda.org/browse/EJB-32?page=all ] Vance Karimi reopened EJB-32: -----------------------------
Need to add the association mutators to the base class. > EJB3: EmbeddedValue: Generate Associations > ------------------------------------------ > > Key: EJB-32 > URL: http://jira.andromda.org/browse/EJB-32 > Project: EJB Cartridge > Type: Improvement > Environment: Andromda-3.2, EJB3 > Reporter: Torsten Lunze > Assignee: Vance Karimi > > A EmbeddedValue can have associations which should be generated to. For > example you can have a Currency (defining Dollar, Euro ...) and CurrencyValue > having a Currency and an amount. In CurrencyValue you would need the > following: > @OneToOne > @JoinColumn(name="CURRENCY_CODE") > public Currency getCurrency() { > return currency; > } > (I think only unidirectional OneToOne association make sense here) > Then you also have to override the foreign key in the Entity you will > embedded the currency value (<- I will provided a patch for this) -- 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