We wanted the ability to configure Hiberante queries (or any ORM query really) so that we could easily pass values from JSF expressions (or others like OGNL for Tapestry) to parameters of a query.
Thus the goal is: Integrating Hibernate and JSF so you can easily pass JSF expressions as Hibernate Query params without writing the same Java code each time.
Imagine you want to show a dropDownBox and depending on which customer is logged in you show different values.(This would also work with any report.)
We already have a mechansim so that we can easily show data in dropDownBoxes from DAO objects, and it is somewhat configurable, but we needed to be able to execute an arbitrary HQL (or any equiv in any ORM like thing: iBatis, Hibernate, TopLink) and generate a dropDown or report from the that.
(Dropdown is just for the example: it could be a report or other selectItems type things).
http://www.thearcmind.com/confluence/display/SpribernateSF/Integrating+Hibernate+and+JSF+so+you+can+easily+pass+JSF+expressions+as+Hibernate+Query+params
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment