With this entity:
An entity has a version field, with AUTO strategy.
public class Department
A record is inserted...
Department d = new Department();
If the select is over the entity, "SELECT d from Department d", the version field is set up correctly in the returned entity.
But if the version field is explicitly projected, "SELECT d.id, d.myVersion, d.name from Department d", the id and the name values are returned fine, but the myVersion value is null.