Advanced Java L2
Advanced Java L2
Hibernate
➢ Setting Up Hibernate
✓ Introduction
✓ Getting the required libraries for hibernate
✓ Creating a hibernate persistent class
✓ Providing an XML-based hibernate mapping
✓ Providing an annotation-based hibernate mapping
✓ Providing a hibernate configuration using an XML file
✓ Providing a hibernate configuration using the properties file
✓ Configuring hibernate programmatically
➢ Basic Annotations
✓ Introduction
✓ Declaring a class as an entity and creating a table in the database –
@Entity and @Table
✓ Creating a column in the table – @Column
✓ Creating a primary key and composite primary key column – @Id
and @IdClass
✓ Creating an autogenerator column
➢ Working with Collections
✓ Introduction
✓ Persisting List
✓ Persisting Set
✓ Persisting Map
✓ Persisting Array
➢ Querying
✓ Introduction
✓ Working with an alias
✓ Performing aggregate operations
✓ Executing a subquery using a criteria
✓ Executing a native SQL query
✓ Executing a query using HQL
✓ Using formula in hibernate
✓ Working with NamedQuery
➢ Advanced Concepts
✓ Introduction
✓ Working with a first-level cache
✓ Working with a second-level cache
✓ Working with a query cache
✓ Working with the table per class hierarchy strategy of inheritance
✓ Working with the table per subclass strategy of inheritance
✓ Working with the table per concrete class strategy of inheritance
✓ Working with the versioning of objects
✓ Maintaining the history of an object
✓ Working with an interceptor
✓ Working with batch processing