[ http://jira.andromda.org/browse/HIB-126?page=comments#action_11900 ]
     
Pietro Bonanno commented on HIB-126:
------------------------------------

Chad, thanks for your fast reply.

Could you please explain me what do you mean?
If this isn't the right place, please tell me where we can move...

My class Relation (marked as Entity) contains two fields of class RelationdEnd, 
which has an association with class Struct.

I found only two ways to model this with Andromda:
1) chain Relation and RelationEnd with a composition, which Andromda implement 
as a many-to-one.
So I'll have a join, that's not useful.

2) Embed RelationEnd into Relation, so I mark RelationEnd as Embedded, and then 
declare two fields into Relation of type RelationEnd. This produces the bug I 
posted.

I cannot find other ways, so I don't understand your  solutiom...

> 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

Reply via email to