jruesga / phoenix-hibernate-dialect

An Apache Phoenix Hibernate dialect
Apache License 2.0
21 stars 5 forks source link

Versioned entity #4

Closed dennislloydjr closed 6 years ago

dennislloydjr commented 6 years ago

This request handles updating entities with the @Version annotation set on a field. When the version field is present, an UPSERT ... SELECT statement is used to update the row if there is no version conflict. If there is a version conflict, the upsert will not effect any records and cause JPA to throw the EntityExistsException.

jruesga commented 6 years ago

@dennislloydjr thanks