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
  • I just re-read my previous comment and it says: "The following syntax is only compatible at the Hibernate level but not at the JPA level" so definitely these won't work with JPA.

    This works for validation but still tries to pass the primary key as an empty string in the insert failing to do so
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                                  @Id
                                  @GeneratedValue
                                  @Column(name = "UniqueColumn" columnDefinition="uniqueidentifier")
                        </xsd:appinfo>
    </xsd:annotation>

    I think the answer is still the same and JPA doesn't support this.
Reply
  • I just re-read my previous comment and it says: "The following syntax is only compatible at the Hibernate level but not at the JPA level" so definitely these won't work with JPA.

    This works for validation but still tries to pass the primary key as an empty string in the insert failing to do so
    <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                                  @Id
                                  @GeneratedValue
                                  @Column(name = "UniqueColumn" columnDefinition="uniqueidentifier")
                        </xsd:appinfo>
    </xsd:annotation>

    I think the answer is still the same and JPA doesn't support this.
Children
No Data