--- Walter Mour�o <[EMAIL PROTECTED]> wrote: > Ooops! > > >I just checked in (I thought we had it already..but > I > >guess not) an isRequired method to both association > >end and attribute: so if its '0..*' or '0..1' for > >example it will return true '1..*', etc. would > return > >false. Does this work for you? > > Please check: > > "1..*" -> isRequired = true > "0..*" -> isRequired = false
--- Oh yeah sorry..thats what I meant! :) > > Is it ? > > Walter > > Chad Brandon <[EMAIL PROTECTED]> grava: > > > >--- Walter Mour�o <[EMAIL PROTECTED]> wrote: > >> 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..*). > > > >I just checked in (I thought we had it already..but > I > >guess not) an isRequired method to both association > >end and attribute: so if its '0..*' or '0..1' for > >example it will return true '1..*', etc. would > return > >false. Does this work for you? > > > >> > >> 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 > > > > > > > --------------------------------------------------------------------------- > 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 ------------------------------------------------------- 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
