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
  • # Does this required any required setting from database. I am using MYSQL.

    # I am getting below error (Duplicate key exist )when I am trying to update record in data (Testing by inserting the same PRIMARY_KEY which is already existing in DB).

    # I am Using same CDT provided by you only removed @GeneratedValue from it.

    Error:-
    There is a problem with task “Write to Data Store Entity” in the process “versionSample”. An error occurred while trying to write to the entity “ZZVersionTest” [id=6ee24d60-80ac-4420-9b87-b785077fb641@2138, type=ZZVersionTest (id=2332)] (data store: CustomCDT). Details: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update: java.sql.BatchUpdateException: Duplicate entry '20' for key 'PRIMARY' Data: TypedValue[it=2332,v={20,test,test,test,<null>}]

Reply
  • # Does this required any required setting from database. I am using MYSQL.

    # I am getting below error (Duplicate key exist )when I am trying to update record in data (Testing by inserting the same PRIMARY_KEY which is already existing in DB).

    # I am Using same CDT provided by you only removed @GeneratedValue from it.

    Error:-
    There is a problem with task “Write to Data Store Entity” in the process “versionSample”. An error occurred while trying to write to the entity “ZZVersionTest” [id=6ee24d60-80ac-4420-9b87-b785077fb641@2138, type=ZZVersionTest (id=2332)] (data store: CustomCDT). Details: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update: java.sql.BatchUpdateException: Duplicate entry '20' for key 'PRIMARY' Data: TypedValue[it=2332,v={20,test,test,test,<null>}]

Children
No Data