Pagination using Hibernate and JSP

If the result set is large, then having the entire result set in memory will not be feasible. With large result sets, you cannot afford to have them in memory. In such case, you have to fetch a chunk of data at a time (query based paging). The down side of using query based paging, […]

Many-to-One Relationship in Hibernate Mappings – Example

This example program demonstrates how to write the many-to-one accociations using the hibernate mapping files. Book.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 package hibernate;   import java.io.Serializable;   public class Book implements Serializable{ […]

Difference between hibernate’s save,update and saveOrUpdate() methods

Difference between hibernate’s save,update and saveOrUpdate() methods Hibetnate has set of methods for saving and updating the values in the database. The methods look like same and difficult to differentiate between them if you are not understanding them clearly. If you understand the hibernate mechanism clearly, it doesn’t execute the SQL statements directly to manipulate […]

Close
Please support the site
By clicking any of these buttons you help our site to get better