Android-Orma icon indicating copy to clipboard operation
Android-Orma copied to clipboard

Explicit JOINs like in ActiveAndroid

Open PtiPingouin opened this issue 8 years ago • 2 comments

How to perform an inner join?

PtiPingouin avatar Jun 16 '16 17:06 PtiPingouin

How about direct associations?

gfx avatar Jun 17 '16 05:06 gfx

I don't want to add columns to my models only to perform a join. I managed to do it with a raw query, but that would be great to have a built-in method in the future, like in ActiveAndroid.

Maybe something like:

selectFromMyModel().innerJoin(myOtherModelRelation).on(clause, args).where(...)...

PtiPingouin avatar Jun 17 '16 08:06 PtiPingouin