Sorry to slightly mis-use the forums to get help :)
I am not aware of a method to add conditions to joins. Is there any way to do this that I didn't see, or would this be a nice-to-have feature?
I would like to use it e.g. to only load relations that don't have the deleted flag set to 1.
Something like this:
class Event {
...
@OneToMany
@OrderBy("cdate")
@Include("deleted=1")
private List<Comment> comments;
}
Of course the @Include(...) is just a quick suggestion, there would be most likely a better annotation to achieve the goal.
Thanks & regards,
Eabin