fedecalarco / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

POJO result mode #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add a way to return results as POJOs, similar to the way hibernate 
generally returns entities, except (1) not lazy-loading proxies and (2) 
only load the specified fields.

Maybe something like this:

Search s = new Search();
s.addField("firstName").addField("lastName").addField("age");
s.setResultMode(Search.POJO);

While we're at it how about an varargs addFields method:

s.addFields("firstName", "lastName", "age");

Original issue reported on code.google.com by dwolvert on 13 Jul 2009 at 3:45

GoogleCodeExporter commented 8 years ago

Original comment by dwolvert on 25 Aug 2009 at 5:12