Hi folks,
I think there is a mistake in "HibernateEntity.vsl".
The following code:
#if ($associationEnd.one2Many)
* @hibernate.set
* role="$target.name"
* lazy="true"
* @hibernate.collection-key
* column="$target.columnName"
* @hibernate.collection-one-to-many
* class="$targetTypeName"
*/
should be:
#if ($associationEnd.one2Many)
* @hibernate.set
* role="$target.name"
* lazy="true"
* @hibernate.collection-key
* column="$associationEnd.columnName"
* @hibernate.collection-one-to-many
* class="$targetTypeName"
*/
since using $target.columnName causes the creation of a wrong column in
the "one" side of the relationship.
Talking about relationships... Is there a way to know the multiplicity of
an association end ? I need this feature to create the fk column nullable
(0..*) or not (1..*).
regards,
---------------------------------------------------------------------------
Walter Itamar Mour�o - Diretor de Tecnologia e Projetos - Arcadian S/A
www.arcadian.com.br
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel