Hello,
i would like to do be able to retrieve a subset of collection with two differents getter for a same collection in my pojo.
For example, is it possible to do the following ?
if no, what cani do to retrieve subset of data (write a dao method ?) ?
Code:
class MyPojo {
private Long id;
....
private Set mySet = new HashSet();
// and
@OneToMany ...
public List getMySet(){
return mySet;
}
// and one with a where annotation
@OneToMany ....
@Where (clause="country=toto")
public List getMySetBySpecificCountry(){
return mySet;
}
}
Thank you very much.