As far as I know this is not part of the JPA spec. At least Hibernates JPA implementation provides an own annotation @Where
which can be used:
@OneToMany
@Where(clause = "state="ALIVE"")
Set<Pet> alivePets
As far as I know this is not part of the JPA spec. At least Hibernates JPA implementation provides an own annotation @Where
which can be used:
@OneToMany
@Where(clause = "state="ALIVE"")
Set<Pet> alivePets