org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.HashSet; nested exception is org.hibernate.MappingException: Unknown entity: java.util.HashSet

sc0713.com | 4 months ago
  1. 0

    spring-boot, spring security, spring web with maven, jboss and eclipse

    codegur.net | 8 months ago
    org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.HashSet; nested exception is org.hibernate.MappingException: Unknown entity: java.util.HashSet
  2. 0

    Hibernate Call in violation of protocol exception

    codegur.online | 4 months ago
    org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.HashSet; nested exception is org.hibernate.MappingException: Unknown entity: java.util.HashSet
  3. 0

    spring-boot, spring security, spring web with maven, jboss and eclipse

    sc0713.com | 4 months ago
    org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.HashSet; nested exception is org.hibernate.MappingException: Unknown entity: java.util.HashSet
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Upgrading Hibernate 3.6 to 4.3 getting org.hibernate.MappingException: Unknown entity: java.util.HashSet

    Stack Overflow | 1 year ago | NITIN SHUKLA
    org.hibernate.MappingException: Unknown entity: java.util.HashSet. The exception is caused on calling getHibernateTemplate().saveOrUpdate(collection); where collection is a Set of entities that application is looking to save. The mapping configuration of these entities in the application has not undergone any change and is same as before, so I am unable to realize what is going wrong now. The application is using Spring 4.1 and Java 8 and MS SQL 2014 is the database. Any help/pointers to help resolve the issue is appreciated. Below is the stacktrace for the Exception raised. org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.HashSet; nested exception is org.hibernate.MappingException: Unknown entity: java.util.HashSet
  6. 0

    Gradle Hibernate Configuration Requires Mapped Classes

    Stack Overflow | 2 years ago
    org.hibernate.MappingException: Unknown entity: com.gmail.physicistsarah.gradletestproject.core.Init$Person

  1. DoktorDoener666 1 times, last 4 weeks ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.MappingException

    Unknown entity: java.util.HashSet

    at org.hibernate.internal.SessionFactoryImpl.getEntityPersister()
  2. Hibernate
    SessionImpl.saveOrUpdate
    1. org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1096)
    2. org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1443)
    3. org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:242)
    4. org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:511)
    5. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:100)
    6. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
    7. org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:684)
    8. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:676)
    9. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:671)
    9 frames
  3. Spring ORM
    HibernateTemplate.saveOrUpdate
    1. org.springframework.orm.hibernate4.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:685)
    2. org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:340)
    3. org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:218)
    4. org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:343)
    5. org.springframework.orm.hibernate4.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:308)
    6. org.springframework.orm.hibernate4.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:681)
    6 frames
  4. com.mycompany.rm
    CopyNodeJobServiceImplTest.testCopyNodeAtPGLevelWithX502LinkageWhenTargetSeasonHasNoChildrenShouldSucceed
    1. com.mycompany.rm.pmech.common.dao.GenericDAO.saveOrUpdateAll(GenericDAO.java:408)
    2. com.mycompany.rm.pmech.pricingprogram.service.impl.PricingGridServiceImpl.saveLinks(PricingGridServiceImpl.java:318)
    3. com.mycompany.rm.pmech.pricingprogram.service.impl.PricingGridServiceImpl.saveAndPropagateLinks(PricingGridServiceImpl.java:281)
    4. com.mycompany.rm.pmech.pricingprogram.service.impl.PricingGridServiceImpl.createLink(PricingGridServiceImpl.java:235)
    5. com.mycompany.rm.pmech.pricingprogram.service.impl.CopyNodeJobServiceImpl.performGridLinkingForNode(CopyNodeJobServiceImpl.java:498)
    6. com.mycompany.rm.pmech.pricingprogram.service.impl.CopyNodeJobServiceImpl.performGridLinking(CopyNodeJobServiceImpl.java:473)
    7. com.mycompany.rm.pmech.pricingprogram.service.impl.CopyNodeJobServiceImpl.performLinking(CopyNodeJobServiceImpl.java:324)
    8. com.mycompany.rm.pmech.pricingprogram.service.impl.CopyNodeJobServiceImpl.copyNode(CopyNodeJobServiceImpl.java:109)
    9. com.mycompany.rm.pmech.pricingprogram.service.impl.CopyNodeJobServiceImplTest.testCopyNodeAtPGLevelWithX502LinkageWhenTargetSeasonHasNoChildrenShouldSucceed(CopyNodeJobServiceImplTest.java:463)
    9 frames
  5. Java RT
    DelegatingMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3 frames
  6. Spring TestContext
    ConditionalTestCase.runBare
    1. org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:79)
    1 frame
  7. JUnit
    ParentRunner.run
    1. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
    2. org.junit.runners.Suite.runChild(Suite.java:127)
    3. org.junit.runners.Suite.runChild(Suite.java:26)
    4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    9. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    9 frames
  8. org.junit.extensions
    ClasspathSuite.run
    1. org.junit.extensions.cpsuite.ClasspathSuite.run(ClasspathSuite.java:194)
    1 frame
  9. JUnit
    JUnitCore.run
    1. org.junit.runners.Suite.runChild(Suite.java:127)
    2. org.junit.runners.Suite.runChild(Suite.java:26)
    3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    9. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    9 frames
  10. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
    1 frame
  11. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
    2 frames
  12. Java RT
    NativeMethodAccessorImpl.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    2 frames
  13. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
    1 frame