Hi got a question.
I want to make a one-to-many relationship between two tables/classes
Class1 got:
id =(native generated id)
listnumber = (Long)
Class2 got
id =(native generated id)
listnumber = (Long)
In class two I want a function:
public Set getClass1()
that will return all entries (or instances) of Class1,
To be more specific:
an instance Class2 has for example listnumber = 2
and I want to get all the Class1's that has listnumber = 2
I've tried to use collection.one-to-many, without any success..
Is it possible to make this work in Hibernate?
//Martin
|