Ygg01 / hibernate-generic-dao

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

Query Helper Methods? #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Look into value of adding query helper methods.

For example:

protected List query(String hql, Object... params);
protected List namedQuery(String queryName, Object... params);
protected Object queryUnique(String hql, Object... params);
protected List sqlQuery(String sql, Object... params);

maybe the params can even include param names...
namedQuery("findByName", "firstName", first, "lastName", last);

Original issue reported on code.google.com by dwolvert on 23 Dec 2008 at 10:21

GoogleCodeExporter commented 9 years ago
I've decided this is outside the scope of this framework for now. If anyone 
wants to 
add their own query helper methods, they have a very easy route to do so by 
extending 
the Generic and General DAO classes.

Original comment by dwolvert on 13 Mar 2009 at 4:44