grails / grails-data-mapping

GORM - Groovy Object Mapping
http://gorm.grails.org/
217 stars 198 forks source link

version property injected and considered a persistentProperty regardless of version mapping #1120

Open zyro23 opened 6 years ago

zyro23 commented 6 years ago

Steps to Reproduce

  1. define a domain class Dummy with
    static mapping = {
    version false
    }
  2. try to access new Dummy().version or check the entities' persistentProperties

Expected Behaviour

no version property is injected because of version false

Actual Behaviour

Environment Information

Example Application

sample app will be referenced asap

graemerocher commented 6 years ago

We are aware of this issue, unfortunately due to how the transform works it is not easy to fix