Hello, Here is my problem
I have two Objects and a one-to-many relation between O_1 and O_2 which have composite-id
Code:
O_1{
O_1ID
other...
}
O_1ID{
KEY_1
KEY_2
}
-------------
O_2{
O_2ID
other...
}
O_2ID{
KEY_1
KEY_2
KEY_3
}
i use xdoclet to generate hbm.xml
Code:
/*
* @hibernate.set cascade="all" inverse="false" lazy="false"
* @hibernate.collection-one-to-many
* class="....model.O_2"
* @hibernate.collection-key
* @hibernate.collection-key-column
* name="KEY_1"
* @hibernate.collection-key-column
* name="KEY_2"
*
*/
it compiles and generates fine but when i launch test (show_sql=true)
to get the list of O_1 with theirs O_2
i obtain the first sql to get the list of O_1
Code:
select ..... from O_1 where ....
but no sql is launched to obtains each sublist of O_2