Hi all!
I am very new to Hibernate and can't find an answer to the following question. Hopyfully someone here can get me on the right track.
There are three tables involved in my problem: A, B and C.
Table C has three columns: A_id, B_id and some bigint(20) value.
An example for table C might look like this:
A_id; B_id; some_value 1 3 NULL 1 8 13 2 3 NULL
I want to use a hbm.xml mapping that returns a Set<ArrayList<Object>> into my Java class corresponding to table A, where each ArrayList has two elements: an object of B, and an Integer-object holding the value stored in some_value.
Or in other words: In my Java class corresponding to table A there must be a method that returns such a set.
The returned set for A_id = 1 would contain two ArrayLists: object of 3, NULL object of 8, 13
How can this be done?
Kind regards!
|