I created a db some time ago using hibernate (JPA), however I didn't included @version fields for any entities. Turns out that this project became something important and now I need to use versioning (versioning with optimistic locking).
I know I need to add a new property (field) to every single entity with @version annotation.
Question: Does anyone know how can I update the real DB (mysql) to include version columns without data loss and too much work?
Thanks very much.