Bugs item #688537, was opened at 2003-02-18 20:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=688537&group_id=40712

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Isabelle Phan (iphan)
Assigned to: Nobody/Anonymous (nobody)
Summary: insert fails in list with non-sequential index

Initial Comment:
context: many-to-many association mapped as list with index

if the list contains null values because the n,m
mapping table contains non-sequential values in the
index column, hibernate will refuse to insert a new row
in the position of a null.

example:
9 items in the List, element with index=5 is null
because index column contains values (0, 1, 2, 3, 4, 6,
7, 8, 9)

myList.add(5, newItem);

returns:
cirrus.hibernate.HibernateException: SQL update or
deletion failed (row not found)


----------------------------------------------------------------------

>Comment By: Gavin King (oneovthafew)
Date: 2003-02-20 00:47

Message:
Logged In: YES 
user_id=384580

This was expected behaviour in Hibernate 1.x. In response to
this user's request, I have reworked how collections
represent null values in Hibernate2. We cannot pull these
changes back into 1.x because it is incompatible with the
old functionality.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=688537&group_id=40712


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to