hi,
I have a table IO which contains a Set <String> of labels:
Code:
<hibernate-mapping>
<class name="IO" table="IO">
...
<set name="labels" table="LABELS" lazy="false">
<key column="IO_ID" />
<element type="java.lang.String" column="LABEL" />
</set>
...
So, you will have a table LABELS like this:
IO_ID LABEL
1 Car
2 Food
3 Car
...
Now, I want it to return a (distinct) list of all LABEL in the table LABELS.
I've tried about anything but I can't get this (you would think so) simple function to work.
Hopefully, someone can tell what stupid mistake(s) I've made?
tx a lot,
Stijn