Joined: Mon Mar 05, 2007 6:14 pm Posts: 3
|
Hi all,
I am new to hibernate and would like to know does hibernate
supports code generation of where clauses automatically instead of giving the SQL statements in session.createQuery(SQL_QUERY).
Like for example u have a class "VRepPersTaskListQuery".
and has to generate where clauses for that table.
VRepPersTaskListQuery query = new VRepPersTaskListQuery();
query.whereReportsToEQ(Id);
query.whereOwnedByEQ(Id);
query.whereStatusEQ(TaskStatus.COMPLETED);
query.setOrderBy(orderBy);
query.query();
thanks
|
|