Operation of the database is commonly used to delete and change, every time you write these operations too cumbersome, nor necessary, especially to write multi-conditional query and paging, too painful, so the time to write a DAO help jar, import is done! Mom, there's no need to worry about my project anymore!
Reprint please specify the source!!!
Instructions for use:
1, the use of the class please refer to the documentation, do not know how to combine examples demo!
2, paging JSP writing, just the page condition package in <form action= "address" id= "Pageform" > can, and then the jar pagejsp in the pageview.jsp copied out, in the data display below the introduction can!!!
3. It needs to be configured in spring's profile applicationcontext.xml:
<!--automatic scanning and assembly bean--><context:component-scan base-package= "Com.liang" ></context:component-scan> <!--Configure declarative transaction management (in an annotation-based manner)--><bean id= "Txmanager" class= " Org.springframework.orm.hibernate3.HibernateTransactionManager "><property name=" sessionfactory "ref=" Sessionfactory "></property></bean><tx:annotation-driven transaction-manager=" TxManager "/>
There are various configuration file examples in the config of the jar package, which can be referenced
Note the ID of the:<form> form must be "Pageform"
: http://download.csdn.net/detail/liang5630/8133017
The test is as follows:
The underlying DAO layer help jar package implementation that contains multi-conditional query paging based on STRUTS2, Spring, hibernate