1/16
A collection of flashcards covering key terms and concepts related to Hibernate and Jakarta Persistence, as mentioned in the lecture notes.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Jakarta Persistence
A framework for managing the storage of Java objects in a database using Object Relational Mapping (ORM).
Hibernate
An ORM framework that allows Java developers to map Java classes to database tables and manage the persistence of objects.
Object-Relational Mapping (ORM)
A programming technique that converts data between incompatible type systems in object-oriented programming languages.
Transient state
State of an entity when it is created but is not yet associated with a Hibernate session.
Persistent state
State of an entity when it is associated with a Hibernate session and has a representation in the database.
Detached state
State of an entity that is still in memory but not associated with any Hibernate session.
HQL (Hibernate Query Language)
A query language similar to SQL, but operates on the domain model instead of the database structure.
Java Persistence API (JPA)
A specification that describes how to manage relational data in Java applications.
Entity
A Java class that is mapped to a database table.
JDBC (Java Database Connectivity)
A Java API that defines how a client may access a database.
Impedance mismatch
The challenges that arise due to differences between object-oriented programming and relational databases.
Lazy loading
A technique where related data is loaded on demand, rather than immediately at the time of object initialization.
Session in Hibernate
A single-threaded, short-lived object used to encapsulate the interaction with the persistent storage.
Configuration in Hibernate
The setup process for Hibernate, typically managed through an XML file that contains configuration properties.
Criteria Queries
An object-oriented query API in Hibernate to fetch data, reducing common SQL errors.
Entity Lifecycle
The various states entities can be in during their existence in a Hibernate session, including transient, persistent, and detached.
Annotations in Hibernate
Special markers in the code that define the relationship between Java classes and database tables.