This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

'Version' is added in with an .aj (aspect j) file for your entity.
The version field increments when the entity is updated. That way, when 2 threads are updating the same entity record, if the version of the entity you have updated does not match the entity in the database, an exception is thrown indicating that the record as been changed. In other words, you are protected from dirty reads when updating an entity which may have changed.

K

Comment

Oh I see, I was expecting something like that. When exactly 'version' field is created physically on my MySQL database? I can't see it from phpmyadmin management interface, and does not exist in the sql dump (see below)