Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    Hello,

    I have found a cause of your problem: there is no property named "aAOSDoorSubTypePK". You have property named "AAOSDoorSubTypePK".

    When java.beans.Introspector derives property names it generally de-capitalizes first letter after get/set. Except when first and second letters are in upper-case (your case).

    Here is a javadoc for java.beans.Introspector.decapitalize()
    Code:
        /**
         * Utility method to take a string and convert it to normal Java variable
         * name capitalization.  This normally means converting the first
         * character from upper case to lower case, but in the (unusual) special
         * case when there is more than one character and both the first and
         * second characters are upper case, we leave it alone.
         * <p>
         * Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays
         * as "URL".
         *
         * [USER="45788"]param[/USER]  name The string to be decapitalized.
         * @return  The decapitalized version of the string.
         */
    My suggestion would be: rename getter/setter to:
    getAAOSDoorSubTypePK -> getaAOSDoorSubTypePK
    setAAOSDoorSubTypePK -> setaAOSDoorSubTypePK

    Or you can just add getaAOSDoorSubTypePK()/setaAOSDoorSubTypePK() with same functionality so it will not break any existing code.

    Regards,
    Alius
    Last edited by alius; 7 Mar 2017, 08:21.

    Comment


      #17
      Awesome, working now as expected. Thanks for all your help, I never would have figured out an issue with casing.

      Comment

      Working...
      X