How to specify the uniqueidentifier datatype of SQL SERVER in XSD type?...

How to specify the uniqueidentifier datatype of SQL SERVER in XSD type?...

OriginalPostID-104088

OriginalPostID-104088

  Discussion posts and replies are publicly visible

Parents
  • hello eduardo, when trying to use above annotation, and trying to import the cdt, get the below error:
    A type mapping annotation is invalid: Found Array End (}) but expected one of : Annotation, Value (e.g. String, int), Attribute Name. @Id @GenericGenerator(name = "generator", strategy = "guid", parameters = {}_) @GeneratedValue(generator = "generator") @Column(name = "prospect_name", columnDefinition="uniqueidentifier") Current lexeme: } (APNX-2-4055-000)

    Below is the column, that i am trying to map a column:

    <xsd:element name="prospectName" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                         @Id
    @GenericGenerator(name = "generator", strategy = "guid", parameters = {})
    @GeneratedValue(generator = "generator")
    @Column(name = "prospect_name", columnDefinition="uniqueidentifier")
                                  </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
Reply
  • hello eduardo, when trying to use above annotation, and trying to import the cdt, get the below error:
    A type mapping annotation is invalid: Found Array End (}) but expected one of : Annotation, Value (e.g. String, int), Attribute Name. @Id @GenericGenerator(name = "generator", strategy = "guid", parameters = {}_) @GeneratedValue(generator = "generator") @Column(name = "prospect_name", columnDefinition="uniqueidentifier") Current lexeme: } (APNX-2-4055-000)

    Below is the column, that i am trying to map a column:

    <xsd:element name="prospectName" nillable="true" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                         @Id
    @GenericGenerator(name = "generator", strategy = "guid", parameters = {})
    @GeneratedValue(generator = "generator")
    @Column(name = "prospect_name", columnDefinition="uniqueidentifier")
                                  </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
Children
No Data