Does Appian support @Version JPA Annotation?

Does Appian support @Version JPA Annotation . If yes, which locking strategies it follows Optimistic or Pessimistic.
I am trying to lock my table but it’s not working.
Attached XSD
...

Ver.xsd

OriginalPostID-115265

OriginalPostID-115265

  Discussion posts and replies are publicly visible

Parents
  • I am not sure if I am following correct approach. As per Hibernate documentation:-

    "Hibernate provides two different mechanisms for storing versioning information, a dedicated version number or a timestamp."

    (1) Appian Doesn't support timestamp data type with @version annotation. When I used timestamp data type got the following error in data store validation.

    "A type mapping annotation is invalid: org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime cannot be cast to org.hibernate.type.VersionType (ClassCastException) (APNX-2-4055-000) "

    XSD element Structure:-

    1. Student Id (Type Int/ @ID)
    2. ver_id (Type datetime)
    3. Student name (Type String)


    (2)
    If I provide int data type for ver_id with @version. Then does this field would be auto generated and keeps on incremented if I update the data row.
    I am using MYSQL

    Attached: XSD

    Ver.xsd

Reply
  • I am not sure if I am following correct approach. As per Hibernate documentation:-

    "Hibernate provides two different mechanisms for storing versioning information, a dedicated version number or a timestamp."

    (1) Appian Doesn't support timestamp data type with @version annotation. When I used timestamp data type got the following error in data store validation.

    "A type mapping annotation is invalid: org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime cannot be cast to org.hibernate.type.VersionType (ClassCastException) (APNX-2-4055-000) "

    XSD element Structure:-

    1. Student Id (Type Int/ @ID)
    2. ver_id (Type datetime)
    3. Student name (Type String)


    (2)
    If I provide int data type for ver_id with @version. Then does this field would be auto generated and keeps on incremented if I update the data row.
    I am using MYSQL

    Attached: XSD

    Ver.xsd

Children
No Data