miguelAngelOjeda / hibernate-generic-dao

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

Search.removeField(property) not work #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when use projection query, the addField method can work, but the removeField 
have no effect on result.
i use the latest version:1.2.0

Original issue reported on code.google.com by sendre...@gmail.com on 22 Dec 2013 at 9:38

GoogleCodeExporter commented 9 years ago
and i found another serious problem, if use projection search, the result 
return will be object other then custom object.

Search s = new Search(Document.class);
s.addFilterIn("id", dictionary.keySet().toArray());
s.addField("oid").addField("id").addField("name").addField("owner").addField("au
thor");
List<Document> docs = documentDao.search(s);

the result will be Object list other than Document list.

Original comment by sendre...@gmail.com on 22 Dec 2013 at 11:27