What does the follwing error means?

Certified Senior Developer

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:

  Discussion posts and replies are publicly visible

Parents Reply
  • I am also facing the same error - trying insert a new record in data store entity but it is unable to create a new ID.

    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="id" nillable="false" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Id @Column(name="ID", nullable=false, unique=true, columnDefinition="NUMBER") @GeneratedValue</xsd:appinfo>
    </xsd:annotation>

    ERROR 

    An error occurred while trying to write to the entity "DSENAME" [id=a6da64a0-8b67-4c95-9eee-0073b364a76c@429854, type=type (id=11376)] (data store: DS). Details: jakarta.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session

Children
No Data