[ http://jira.andromda.org/browse/HIB-184?page=all ]
     
Work on HIB-184 started by Carlos Cuenca

> Duplicate Column names generated if EmbeddedValue containing another 
> EmbeddedValue is referenced twice
> ------------------------------------------------------------------------------------------------------
>
>          Key: HIB-184
>          URL: http://jira.andromda.org/browse/HIB-184
>      Project: Hibernate Cartridge
>         Type: Bug

>     Versions: 3.2-RC1
>  Environment: All
>     Reporter: Ronald Tschalär
>     Assignee: Carlos Cuenca
>  Attachments: hibernate.patch.zip, hibernate_bug.jpg
>
> Assume you have an Entity A with two attributes, a1 and a2, both with
> the same type which is an EmbeddedValue B; furthermore, assume that B
> contains an attribute b1 of type another EmbeddedValue C (with some
> attribute c1). Andromda will then generate two columns in the
> hibernate descriptor for a1.b1.c1 and a2.b1.c1 but give them both the
> same column name b1.c1 .
> The problem is that the prefix used for to generate the column names
> only contains the parent-attribute's name, but needs to include the
> complete ancestor list in order to make it unique. Attached is a
> simple patch, plus modified test case (see the SecondLevelEmbeddedType
> class).
> Attached is also a diagram excerpt from the test-case showing the
> three relevant classes. Before the patch the column names generated
> were both ATTR4_ATTR, and with the patch the names are
> FIRST_EMBEDDED_ATTR4_ATTR and SECOND_EMBEDDED_ATTR4_ATTR.

-- 
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

Reply via email to