The session object needs to be serializable hence all objects referenced by it must be serializable as well.
The id is used as a key to index loaded objects in the session. In case of CompositeId s the class itself is used as the id.
More Related Contents:
- How to map a composite key with JPA and Hibernate?
- What is the difference between persist() and merge() in JPA and Hibernate?
- Hibernate saveOrUpdate behavior
- ImprovedNamingStrategy no longer working in Hibernate 5
- Correct use of flush() in JPA/Hibernate
- JPA & Criteria API – Select only specific columns
- can someone please explain me @MapsId in hibernate?
- Make Hibernate ignore instance variables that are not mapped [duplicate]
- How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6
- How to call Oracle Function or Procedure using Hibernate (EntityManager) or JPA
- Spring data JPA and hibernate detached entity passed to persist on ManyToMany relationship
- Java / Hibernate – Write operations are not allowed in read-only mode
- How to call an Oracle function from Hibernate with a return parameter?
- Refresh and fetch an entity after save (JPA/Spring Data/Hibernate)
- Have JPA/Hibernate to replicate the “ON DELETE SET NULL” functionality
- Doing an “IN” query with Hibernate
- Error “java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger”
- Save child objects automatically using JPA Hibernate
- How can I avoid the Warning “firstResult/maxResults specified with collection fetch; applying in memory!” when using Hibernate?
- Hibernate order by with nulls last
- Difference between save and saveAndFlush in Spring data jpa
- How can I set Datasource when I’m creating Hibernate SessionFactory?
- Hibernate, Java 9 and SystemException
- Enumerations in Hibernate
- org.hibernate.InstantiationException: No default constructor for entity: : principal.Cliente
- Using hibernate criteria, is there a way to escape special characters?
- Why is the Hibernate query.list() slow?
- Inserting data in one table using HQL in Hibernate
- java.lang.NumberFormatException: For input string in JSP Page
- Make hibernate backquote all table / column names