"SCOPE_IDENTITY' error 'SCOPE_IDENTITY' is not a recognized built-in function name.

I am getting the following error when I am to insert on my table. Any ideas why?

 the following data

what is SCOPE_IDENTITY

  Discussion posts and replies are publicly visible

Parents Reply
  • So, it is a possibility of being related to missing @Id in your notation - there is also a conflict with nillable between the element and notation, try this:

    <xsd:element name="aappNum" nillable="false" type="xsd:int">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">@Id @GeneratedValue @Column(name="AAPP_Num", nullable=false, columnDefinition="BIGINT IDENTITY")</xsd:appinfo>
    </xsd:annotation>
    </xsd:element>

    I haven't used BIGINT on any identity fields prior either, 2,147,483,647 rows has been plenty for me so far :) 

Children
No Data