org.hibernate.id.IdentifierGenerationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • using spring data jpa with spring boot issue
    via Stack Overflow by Stefan
    ,
    • org.hibernate.id.IdentifierGenerationException: attempted to assign id from null one-to-one property […] at org.hibernate.id.ForeignGenerator.generate(ForeignGenerator.java:101) at org.hibernate.mapping.Component$ValueGenerationPlan.execute(Component.java:422) at org.hibernate.id.CompositeNestedGeneratedValueGenerator.generate(CompositeNestedGeneratedValueGenerator.java:121) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:117) at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:78) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:208) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:151) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:843) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:836) at org.hibernate.ejb.engine.spi.EJB3CascadingAction$1.cascade(EJB3CascadingAction.java:53) at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:388) at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:331) at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:209) at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:418) at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:358) at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:334) at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:209) at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:166)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    nasimknasimk
    4 times, last one,
    tomthomastomthomas
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    smyrgeorgesmyrgeorge
    1 times, last one,
    8 more bugmates