[ http://jira.andromda.org/browse/NETCART-2?page=comments#action_13320 ]
Michel Löhr commented on NETCART-2: ----------------------------------- Hi, I would likt to know the state on this issue. It is really bugging me...thanks. > unidirectional reflexive association, problem with "unique" > ----------------------------------------------------------- > > Key: NETCART-2 > URL: http://jira.andromda.org/browse/NETCART-2 > Project: .NET Cartridges > Type: Bug > Environment: A n d r o M D A - 3.2-RC1-20060125041715 > Reporter: EricR > Assignee: Naresh Bhatia > > I have an unidirectional reflexive association 1-to-(0..1). the association > end got the rolename "previous" and is navigable. > the generated mapping file contains : > <many-to-one name="Previous" class="nGEFHib.Domain.MyClassImpl, nGEFHibCore" > foreign-key="MY_CLASS_PREVIOUS_FKC" outer-join="auto"> > <column name="PREVIOUS_FK" not-null="false" > sql-type="NUMERIC(19,0)" unique="true"/> > </many-to-one> > The constraint "unique=true" is an error, since null is allowed in the > foreign key and that produces an SQL runtime error. -- 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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642