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
 Assigned to: 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



-------------------------------------------------------
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&kid=110944&bid=241720&dat=121642

Reply via email to