0

Is it possible to retrieve a List<Date> instead of a List<SomeBean> using Ebean ?

For example, I have this model:

Days(id, name, day);

I'd like to do something like:

List<Date> dates = Ebean.createQuery(Date.class, "SELECT day FROM days").findList();

Of course, this doesn't work and returns this:

PersistenceException: java.util.Date is NOT an Entity Bean registered with this server?

How can I do that?

4

0 回答 0