org.hibernate.InstantiationException: No default constructor for entity: com.company.model.arts.CustomerAffiliationId

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Terracotta by bradrust, 1 year ago
No default constructor for entity: com.company.model.arts.CustomerAffiliationId
via hibernate.org by Unknown author, 2 years ago
No default constructor for entity: de.peguform.projectmanager.project.hibernate.Project$ProjectPK
via blogspot.com by Unknown author, 2 years ago
via Stack Overflow by Syed
, 1 year ago
No default constructor for entity: : com.intu.Dashboard at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:81)
via Stack Overflow by Jegan Kunniya
, 2 years ago
No default constructor for entity: com.expt.hibernate.core.Student
via Stack Overflow by NicolasB
, 7 months ago
org.hibernate.InstantiationException: No default constructor for entity: com.company.model.arts.CustomerAffiliationId
at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:107)
at org.hibernate.tuple.component.AbstractComponentTuplizer.instantiate(AbstractComponentTuplizer.java:102)
at org.hibernate.type.ComponentType.instantiate(ComponentType.java:510)
at org.hibernate.type.ComponentType.instantiate(ComponentType.java:516)
at org.hibernate.type.ComponentType.assemble(ComponentType.java:565)
at org.hibernate.type.ManyToOneType.assembleId(ManyToOneType.java:257)
at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:241)
at org.hibernate.collection.PersistentSet.initializeFromCache(PersistentSet.java:147)
at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:58)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:159)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:71)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1853)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:369)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111)
at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:134)
at com.company.service.impl.CustomerManagerImpl.convertToCustDTO(CustomerManagerImpl.java:819)

Users with the same issue

Once, 6 months ago
Once, 7 months ago
2 times, 8 months ago
2 times, 1 year ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.