Regular |
|
Joined: Sun Apr 13, 2008 3:04 am Posts: 71 Location: Bangalore
|
true u have use setParameter
see the example in page 578 of persistance with hibernate book.
syntax for fiter enabling and seeting the parameters is..
Filter filter = session.enableFilter("limitItemsByUserRank");
filter.setParameter("currentUserRank", loggedInUser.getRanking());
Regards,
Nagendra
_________________ Raja Nagendra Kumar, C.T.O http://www.tejasoft.com TejaSoft - Specialists in Code Audit, Unit Testing and Merciless Re-factoring - Engineering Crisis Turnaround Experts
|
|