org.hibernate.id.IdentifierGenerationException: null id generated for:class org.openxava.educational.model.Student

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 openxava by pearlbuk
, 1 year ago
null id generated for:class org.openxava.educational.model.Student
via Stack Overflow by Mike Lively
, 2 years ago
null id generated for:class com.sellingsource.bizdev.entities.LeadAffiliate
via hibernate.org by Unknown author, 1 year ago
org.hibernate.id.IdentifierGenerationException: null id generated for:class org.openxava.educational.model.Student
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:95)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:530)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:518)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)
at org.openxava.model.impl.HibernatePersistenceProvider.persist(HibernatePersistenceProvider.java:33)
at org.openxava.model.impl.BasePOJOPersistenceProvider.create(BasePOJOPersistenceProvider.java:155)
at org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:629)
at org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:38)
at org.openxava.model.MapFacade.create(MapFacade.java:73)
at org.openxava.actions.SaveAction.execute(SaveAction.java:24)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:309)
at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:238)
at org.openxava.controller.ModuleManager.execute(ModuleManager.java:205)

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.