Open zyro23 opened 6 years ago
Dummy
static mapping = { version false }
new Dummy().version
persistentProperties
no version property is injected because of version false
version false
GormEntityTransformation
PersistentEntity.isVersioned()
false
sample app will be referenced asap
We are aware of this issue, unfortunately due to how the transform works it is not easy to fix
Steps to Reproduce
Dummy
withnew Dummy().version
or check the entities'persistentProperties
Expected Behaviour
no version property is injected because of
version false
Actual Behaviour
GormEntityTransformation
seems to injected it regardless of the verison mapping: https://github.com/grails/grails-data-mapping/blob/v6.1.10/grails-datastore-gorm/src/main/groovy/org/grails/compiler/gorm/GormEntityTransformation.groovy#L447-L454PersistentEntity.isVersioned()
returnsfalse
Environment Information
Example Application
sample app will be referenced asap