The reference you are interested in can be found in the Beans specification at Section 8.8.
That being said, it does not explicitly cover your particular case of gId
/gURL
. The specification says that to provide a getter/setter, we simply capitalize the first letter. To recover the property from the getter/setter, if the first two letters are uppercase, then the whole property is left as-is. Otherwise we decapitalize the first letter. So your getter would become getGURL
, but your property would be incorrectly recovered from the getter as GURL
. You have the same problem with gId
.
Therefore it seems that the specification does not allow you to provide a consistent translation of any property with a first lowercase character followed by an uppercase character.
My suggestion is to either adopt a completely lowercase property, or to extend the lowercase prefix to two letters (glURL
, for example).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…