Which is the Best Java Web Framework ?

org.hibernate.MappingException: composite-id class must implement Serializable:
at org.hibernate.mapping.RootClass.checkCompositeIdentifier(RootClass.java:263)
at org.hibernate.mapping.RootClass.validate(RootClass.java:244)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1362)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1865)

Type

Runtime

Cause

Class with the composite Id is not implementing Serializable interfaceResolutionIf you are using composite key in entity using IdClass, make sure that you have the class implementing Serializable interface@Entity@Table(name="SAMPLE_TABLE")@IdClass(SampleEntity.class)Class SampleEntity implements serializable {@Idprivate String name;@Idprivate String Deptt;}

Total Site Views

Contact Us - Send us Technical Queries - We will be happy to help.

Disclaimer:
The intent of the site is to help students and professional in their academics and career.Though best effort are made to present the most accurate information, No guarantees are made regarding the accuracy or usefulness of content.The site holds no responsibility of any harm to anyone because of provided information.

This site contains some content ( interview questions ) submitted by users. If you have any concern regarding the copyright of the content, Contact us with the original reference and the content will be removed.