liveBook · Manning

Hibernate session

A Hibernate Session is an interface that manages persistent entity instances and database interactions within a persistence context and unit of work.

How 2 Manning books explain it

Test Driven: Practical TDD and Acceptance TDD for Java Developers

A Hibernate Session is an interface for interacting with a database and managing persistent objects within a persistence context.

How it is used
Uses sessions to implement and test Hibernate data-access objects.
How deep it goes
Explains session acquisition, querying, saving, and test visibility without detailing persistence internals.
Examples
Uses a last-name query and a Person persistence test to demonstrate session operations.
What you can do after
Apply it via Hibernate to query and save objects, and verify persistence with a separate session.

Read how Test Driven: Practical TDD and Acceptance TDD for Java Developers explains Hibernate session →

The Quick Python Book, Fourth Edition

Session is a SQLAlchemy unit-of-work object that manages database interactions and transactional changes.

How it is used
Manages SQLAlchemy database operations and commits transactional changes in table-based and ORM workflows.
How deep it goes
Explains setup, execution, commits, queries, inserts, updates, and deletes, without descending into session internals.
Examples
Uses a people table with Bob, Jill, Joe, and Jane to demonstrate insertion, selection, updating, and deletion.
What you can do after
Operate/configure SQLAlchemy sessions to create records, query rows, update objects, delete objects, and commit changes.

Read how The Quick Python Book, Fourth Edition explains Hibernate session →

Also covered in

What to know first

Related concepts

Questions about Hibernate session

What is Hibernate session?

A Hibernate Session is an interface that manages persistent entity instances and database interactions within a persistence context and unit of work.

Which Manning books explain Hibernate session?

Test Driven: Practical TDD and Acceptance TDD for Java Developers and The Quick Python Book, Fourth Edition.

What should I know before learning Hibernate session?

Manning books that teach Hibernate session usually introduce SQL first.

What is Hibernate session part of?

Hibernate session is part of database transaction. A database transaction is a bounded unit of database operations whose changes are treated as one logical whole, typically committed or rolled back together.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.