org.hibernate.MappingException: Unknown entity: org.apache.camel.example.reportincident.model.Inci dent at org.hibernate.impl.SessionFactoryImpl.getEntityPer sister(SessionFactoryImpl.java:580) at org.hibernate.impl.SessionImpl.getEntityPersister( SessionImpl.java:1365) at org.hibernate.engine.ForeignKeys.isTransient(Forei gnKeys.java:203) at org.hibernate.event.def.AbstractSaveEventListener. getEntityState(AbstractSaveEventListener.java:535) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.performSaveOrUpdate(DefaultSaveOrUpdateEven tListener.java:103) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.onSaveOrUpdate(DefaultSaveOrUpdateEventList ener.java:93) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(Se ssionImpl.java:534) at org.hibernate.impl.SessionImpl.saveOrUpdate(Sessio nImpl.java:526) at org.hibernate.impl.SessionImpl.saveOrUpdate(Sessio nImpl.java:522) at org.apache.camel.example.reportincident.dao.impl.I ncidentDAOImpl.saveIncident(IncidentDAOImpl.java:1 01) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

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 Spring JIRA by Charles Moulliard, 1 year ago
(DefaultSaveOrUpdateEven tListener.java:103) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.onSaveOrUpdate(DefaultSaveOrUpdateEventList ener.java:93) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(Se ssionImpl.java:534) at
via Spring JIRA by Charles Moulliard, 1 year ago
(DefaultSaveOrUpdateEven tListener.java:103) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.onSaveOrUpdate(DefaultSaveOrUpdateEventList ener.java:93) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(Se ssionImpl.java:534) at
org.hibernate.MappingException: Unknown entity: org.apache.camel.example.reportincident.model.Inci dent at org.hibernate.impl.SessionFactoryImpl.getEntityPer sister(SessionFactoryImpl.java:580) at org.hibernate.impl.SessionImpl.getEntityPersister( SessionImpl.java:1365) at org.hibernate.engine.ForeignKeys.isTransient(Forei gnKeys.java:203) at org.hibernate.event.def.AbstractSaveEventListener. getEntityState(AbstractSaveEventListener.java:535) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.performSaveOrUpdate(DefaultSaveOrUpdateEven tListener.java:103) at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.onSaveOrUpdate(DefaultSaveOrUpdateEventList ener.java:93) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(Se ssionImpl.java:534) at org.hibernate.impl.SessionImpl.saveOrUpdate(Sessio nImpl.java:526) at org.hibernate.impl.SessionImpl.saveOrUpdate(Sessio nImpl.java:522) at org.apache.camel.example.reportincident.dao.impl.I ncidentDAOImpl.saveIncident(IncidentDAOImpl.java:1 01) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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