Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax.persistence.Version is not mapped to the @version metadata in orientDB #46

Open
tade82 opened this issue Apr 14, 2016 · 1 comment

Comments

@tade82
Copy link

tade82 commented Apr 14, 2016

Hi,

I am using OrientDB and strugling with version handling. I want to use optimistic locking on the client side but javax.persistence.Version is not mapped to the @Version metadata in OrientDB instead of that a new property column is created.

BR and keep up the good work,
Peter

@tade82 tade82 changed the title javax.persistence.Version does not mapped to the @version metadata in orientDB javax.persistence.Version is not mapped to the @version metadata in orientDB Apr 14, 2016
@tade82
Copy link
Author

tade82 commented Apr 14, 2016

Because the lack of version handling the optimistic locking is not working.
Eg.: If you have an entity in the database with id X and you create a new entity with the same X id and save it to the db, it will be saved flowlessly (overwrites the first version). In this case the proper working would be an OConcurrentModificationException since the versions are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant