If I have a property \'gId\' in my Java class what should the accessor method be named as?
getGId is what I assume.
If there were a property
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).
To be more concret (and as said by Luca and here), spec tells that there is a method which can tell you: java.beans.Introspector.decapitalize(String).