Ebean select in the negative direction

14 views
Skip to first unread message

Sandro Leinzinger

unread,
May 14, 2019, 8:41:28 AM5/14/19
to Ebean ORM
Is it possible to say, that i want all columns expectet one?

So for example:

find().where().eq("id", 1).selectNot("name");

If you have realy big entitys and want all columns but one, you need to declare all other to only get one not ...

Rob Bygrave

unread,
May 15, 2019, 10:51:42 PM5/15/19
to ebean@googlegroups
Not it is not, we have no such feature in Ebean.

> want all columns but one

Note that by default Ebean will define @Lob columns as fetch lazy (and they will not be fetched/included by default).  If you are referred to a @Lob property as the one you are excluding then ... no you don't need to exclude it.


Cheers, Rob.

--

---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ebean/e78b298f-298f-4e6c-836f-91c4cb4d297c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages