According to JPA Spec:
If an entity instance is to be passed by value as a detached object (e.g., through a remote interface), the entity class must implement the Serializable interface.
“JSR 220: Enterprise JavaBeansTM,Version 3.0 Java Persistence API Version 3.0, Final Release May 2, 2006”
More Related Contents:
- JPA JoinColumn vs mappedBy
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- Difference between FetchType LAZY and EAGER in Java Persistence API?
- Hibernate Annotations – Which is better, field or property access?
- How to map an entity field whose name is a reserved word in JPA
- What’s the difference between JPA and Hibernate? [closed]
- How to map calculated properties with JPA and Hibernate
- What is the solution for the N+1 issue in JPA and Hibernate?
- JPA CascadeType.ALL does not delete orphans
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- How to remove entity with ManyToMany relationship in JPA (and corresponding join table rows)?
- JPA/Hibernate Native Queries do not recognize Parameters
- How to solve the LazyInitializationException when using JPA and Hibernate
- I found JPA, or alike, don’t encourage DAO pattern
- Getting Database connection in pure JPA setup
- Hibernate – @ElementCollection – Strange delete/insert behavior
- Hibernate/JPA – annotating bean methods vs fields [duplicate]
- How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6
- JPA: Implementing Model Hierarchy – @MappedSuperclass vs. @Inheritance
- Is it possible to dynamically define column names in Hibernate / JPA?
- Doing an “IN” query with Hibernate
- Specifying an Index (Non-Unique Key) Using JPA
- The onFlushDirty Hibernate Interceptor method is never called
- Difference between @MapKey, @MapKeyColumn and @MapKeyJoinColumn in JPA and Hibernate
- Hibernate throws strange error: Class is not mapped
- Batch inserts with JPA/EJB3
- Hibernate triggering constraint violations using orphanRemoval
- Clarifying terminology – What does “hydrating” a JPA or Hibernate entity mean when fetching the entity from the DB
- Change Table Name of an Entity on runtime? [duplicate]
- How to map one class to different tables using hibernate/jpa annotations