saperliu / hibernate-generic-dao

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

Fetch mode cannot be used with generic DAO #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The search() method on GenericDAO returns List<T> so it cannot return lists
of Object[], List and Map<String, Object> types that are returned when
fetch mode is other than FETCH_ENTITY.

One possible solution is to add another method to GenericDAO for getting a
generic List back. Something like:

List searchWithFetchMode(Search search)"

Hopefully a better name can be found.

Original issue reported on code.google.com by dwolvert on 6 Aug 2008 at 2:57

GoogleCodeExporter commented 9 years ago
for version 0.2.0, a this method was introduced. It is called "searchGeneric".

Original comment by dwolvert on 21 Aug 2008 at 9:12