Regular |
 |
Joined: Tue Oct 12, 2004 9:02 am Posts: 66 Location: Italy
|
I have a table ITEMS and a table CATEGORY with a many-to-may association.
The problem is that the linking table have some entry with category_id null:
ITEM_ID | CATEGORY_ID | ID
1 1 1
1 2 2
....
10 null 100
And using <many-to-many> usual mapping, between ITEMS and CATEGORIES, hibernate throws exception and I think it is because of the nulls!
How to tell to hibernate that null on category should be retrieved ad item with no category?
|
|