> Is it possible for me to do it with Ebean?
You can do anything with a DtoQuery and writing your own SQL.
But no, we can't create an ORM query to have a join to between 2 entities without some relationship like @OneToMany or @ManyToOne etc.
> I don't want to keep too many @ManyToMany, @OneToMany, @ManyToOne annotations on the entities only for join statements.
Well these annotations have a bad reputation due to how they are used and work with other ORMs so to some extent I understand the hesitation.
However, with Ebean ORM we support partially objects and have a query language that allows us to control the "projection of the object graph".
Also the reason for Ebean ORM to exist is that it's an ORM and what that means is that it's main job is "to build object graphs" and these "object graphs" are not necessarily flat rows / tuples but instead graphs with cardinality relationships and this why we have the OneToMany, OneToOne, ManyToOne, ManyToMany.
Apologies for only just getting to answer this question. Unfortunately I've have a bunch of emails from this google group go into my spam folder and I'm only now just finding out that a bunch of questions like this didn't get any response.
Apologies,
Rob.