What are the constraints on an entity class?

Answer

An entity class must fulfill the following requirements:

  • The class must have a no-argument constructor.
  • The class can't be final.
  • The class must be annotated with @Entity annotation.
  • The class must implement a Serializable interface if value passes an empty instance as a detached object.

All jpa Questions

Ask your interview questions on jpa

Write Your comment or Questions if you want the answers on jpa from jpa Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---