grails-data-mapping
grails-data-mapping copied to clipboard
PersistentProperty, EntityAccess, EntityReflector formalities
Formal issues in key interfaces.
- Interface org.grails.datastore.mapping.model.PersistentProperty has a misspelled method name.
getCapitilizedName
should be deprecated, clone togetCapitalizedName
(corrected spelling). - Interface org.grails.datastore.mapping.engine.EntityAccess has a superfluous method. Deprecate either of
getPropertyValue
orgetProperty
. - org.grails.datastore.mapping.reflect.EntityReflector has a misspelled method name.
getPersitentEntity
should be deprecated, clone togetPersistentEntity
(corrected spelling).
Even if there are some methods misspelled this is a breaking change because we're changing public api. I propose to move this to GORM 7.0 milestone. What do you think @puneetbehl?
I am not sure @ilopmar. As we are talking about deprecating them. And, I do not see any harm in doing so as the methods will still be there.
You are right, it is about deprecating and not removing method. In any case I don't think we should do the change in a 6.1.x
release. I still think it is better to move it to 7.0.0
@ilopmar No harm in deprecating a method in 6.1.x if the change is simply picking a method with a slightly different name. If we waited to deprecate until 7, we would have to wait until 8 to remove them
Ok, fair enough. Then we deprecate now so we can remove later in 7. Thanks for the clarification :+1: