1. HQL Select Query Example
2. HQL Update Query Example
3. HQL Delete Query Example
4. HQL Insert Query Example
Hibernate Criteria examples
Hibernate Tutorial
Hibernate Quick Start
Hibernate Association (Table Relationship)
Hibernate / JBoss Tools + Eclipse IDE
Hibernate Logging
Hibernate Connection Pool
Hibernate Cascade
Hibernate Query Language (HQL)
Hibernate Criteria
Hibernate Native SQL
Hibernate Named Query
Hibernate Transaction
Hibernate Advance Technique
Hibernate Performance
Integrate Hibernate with Other Frameworks
Hibernate FAQ
Hibernate Common Errors
Off Topic
Hibernate References
Maven 2 + Hibernate 3.2 + MySQL Example (XML Mapping)
1. Table Creation
2. Generate project structure with Maven
3. Convert to Eclipse project
4. Import converted project into Eclipse IDE
5. Create a resources folder
6. Review project structure
7. Add Hibernate and MySQL dependency
8. Create Hibernate Mapping file + Model class
9. Create Hibernate Configuration file
10. Create Hibernate Utility class
11. Review project structure again
12. Code it to save the record
13. Run it and see output
Reference
Maven 2 + Hibernate 3.2 + MySQL Example (Annotation)
1. Create project infrastructure
2. Add JBoss repository
3. Add Hibernate annotation dependency
4. Update project classpath
5. Update HibernateUtil.java
6. Update Model class
7. Delete existing Hibernate XML mapping file
8. Update Hibernate configuration file
9. Review project structure
10. Run it and see output
Maven 3 + Hibernate 3.6 + Oracle 11g Example (XML Mapping)
1. Table Creation
2. Create Project with Maven
3. Maven to Eclipse IDE
4. Add Hibernate and Oracle Dependency
5. Hibernate Mapping file (hbm) + Model
6. Hibernate Configuration File
7. Hibernate Utility
8. Review Final Project Structure
9. Hibernate Coding
10. Run It
Reference
Maven 3 + Hibernate 3.6 + Oracle 11g Example (Annotation)
1. pom.xml
2. Delete Hibernate Mapping file (hbm)
3. Update Model
4. Update Hibernate Configuration File
5. Hibernate Utility
6. Review Final Project Structure
7. Run It
Reference
Hibernate – One-to-One example (XML Mapping)
Hibernate – One-to-One example (Annotation)
Hibernate – One-to-Many example (XML Mapping)
Hibernate – One-to-Many example (Annotation)
Hibernate – Many-to-Many example (XML Mapping)
Hibernate – Many-to-Many example (Annotation)
Hibernate – Many-to-Many example – join table + extra column (Annotation)
inverse = “true” example and explanation
How to configure the C3P0 connection pool in Hibernate
How to configure DBCP connection pool in Hibernate
Values of cascade:
Hibernate – Cascade example (save, update, delete and delete-orphan)
Different between cascade and inverse
Cascade vs inverse
Conclusion
Reference
Cascade – JPA & Hibernate annotation common mistake
Mistake
Explanation
Solution
Conclusion
Hibernate Query examples (HQL)
1. HQL Select Query Example
2. HQL Update Query Example
3. HQL Delete Query Example
4. HQL Insert Query Example
Reference
Hibernate parameter binding examples
Hibernate Criteria examples
Hibernate native SQL queries examples
Hibernate named query examples
Hibernate Transaction handle example
Cascade – JPA & Hibernate annotation common mistake
Mistake
Explanation
Solution
Conclusion