[ http://jira.andromda.org/browse/HIB-126?page=comments#action_11888 ] Pietro Bonanno commented on HIB-126: ------------------------------------
This question was discussed in a post on the Forum, http://galaxy.andromda.org/forum/viewtopic.php?t=235 Chad Brandon said that this issue wasn't solved because he think embedded classes can't handle associations, and he suggested to use associations instead of embedding. IMHO this can't be the right way, because it involves an unnecessary join in the database. Really, embedded classes can handle associations. Hibernate treat these as normal entities. The only limitation is that they cannot (obviusly) have identity, but the rest is supported. Thanks and bye > Embedded classes doesn't handle associations > -------------------------------------------- > > Key: HIB-126 > URL: http://jira.andromda.org/browse/HIB-126 > Project: Hibernate Cartridge > Type: Improvement > Versions: 3.1-RC1 > Reporter: Pietro Bonanno > Assignee: Carlos Cuenca > Priority: Minor > > When creating an Embedded class, having an association with another Entity, > the generated Hibernate mappings are broken. > I.e., they have "markers" inside attributes, instead of Entity values: > <component name="relEnd1" class="biz.bassnet.cmos.core.dal.RelationEndImpl"> > <many-to-one name="structRef" > class="biz.bassnet.cmos.core.dal.StructImpl" outer-join="$otherEnd.outerJoin" > foreign-key="$otherEnd.foreignKeyConstraintName"> > <column name="$otherEnd.columnName" not-null="true" > sql-type="$otherEnd.sqlType"/> > </many-to-one> > </component> -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Andromda-devel mailing list Andromda-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-devel