14.5. Referring to identifier property
- The special property (lowercase)
idmay be used to reference the identifier property of an entity provided that the entity does not define a non-identifier property named id.
- If the entity defines a named identifier property, you can use that property name.
idproperty can be used to reference the identifier property.
idalways referred to the identifier property regardless of its actual name. A ramification of that decision was that non-identifier properties named
idcould never be referenced in Hibernate queries.