Error In Process Model

Hi All ,

can you guys help me to fix this error .

An error occurred while trying to write to the entity “testTableR” [id=29e7a83e-f6e0-4bd6-a17f-5cc8c25ca65f@384909, type=testTableR (id=21820)] (data store: Testing). Details: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): TestTableRDT23845 Data: TypedValue[it=21821,v={{<null>,test,8765,2020-02-19,636465.0,23}}]

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Please download the XSD and check if "@GeneratedValue" annotation is added for the id field(Primary Key).

  • <xsd:schema xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:tns="urn:com:appian:types" targetNamespace="urn:com:appian:types">
    <xsd:complexType name="testTableR">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Table(name="testTable")</xsd:appinfo>
    <xsd:documentation><![CDATA[testing]]></xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="id" nillable="true" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Id @Column(name="id", nullable=false, unique=true, columnDefinition="INT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="name" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="name", columnDefinition="NVARCHAR(50)")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="phno" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="phNo", columnDefinition="NVARCHAR(100)")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="dob" nillable="true" type="xsd:date">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="DOB", columnDefinition="DATE")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="salary" nillable="true" type="xsd:double">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="Salary", columnDefinition="FLOAT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="age" nillable="true" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="age", columnDefinition="INT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

Reply
  • <xsd:schema xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:tns="urn:com:appian:types" targetNamespace="urn:com:appian:types">
    <xsd:complexType name="testTableR">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Table(name="testTable")</xsd:appinfo>
    <xsd:documentation><![CDATA[testing]]></xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="id" nillable="true" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Id @Column(name="id", nullable=false, unique=true, columnDefinition="INT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="name" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="name", columnDefinition="NVARCHAR(50)")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="phno" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="phNo", columnDefinition="NVARCHAR(100)")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="dob" nillable="true" type="xsd:date">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="DOB", columnDefinition="DATE")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="salary" nillable="true" type="xsd:double">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="Salary", columnDefinition="FLOAT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="age" nillable="true" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Column(name="age", columnDefinition="INT")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

Children