[ http://jira.andromda.org/browse/HIB-92?page=history ]
Chad Brandon reassigned HIB-92:
-------------------------------
Assign To: Chad Brandon (was: Martin West)
> wrong XML for a 1-to-(0..1) association
> ----------------------------------------
>
> Key: HIB-92
> URL: http://jira.andromda.org/browse/HIB-92
> Project: Hibernate Cartridge
> Type: Bug
> Versions: 3.0 RC2
> Reporter: Klaus Schultz
> Assignee: Chad Brandon
>
> I have an unidirectional 1-to-(0..1) association from Item to Bid. Item got
> the forced aggregation symbol, the association end at Bid got the rolename
> "successfullBid". The following XML is generated:
> <many-to-one name="successfullBid"
> class="org.hibernate.auction.model.BidImpl"
> outer-join="auto" foreign-key="ITEM_SUCCESSFULL_BID_FKC">
> <column name="SUCCESSFULL_BID_FK" not-null="false" 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel