0 Replies Latest reply on May 9, 2006 3:50 AM by Sadr Lufti Mufreni

    Error when we have second character is upper case

    Sadr Lufti Mufreni Newbie

      I have a class

      @Embeddable
      public class CModuleSectionPK implements Serializable {
      private static final long serialVersionUID = 9031487275419685579L;
      int id;
      int cModuleId;
      int masterBlockId;
      public CModuleSectionPK() {
      }
      public CModuleSectionPK(int id, int cModuleId, int masterBlockId) {
      this.id = id;
      this.cModuleId = cModuleId;
      this.masterBlockId = masterBlockId;
      }
      @Column(name="C_MODULE_ID")
      public int getCModuleId() {
      return cModuleId;
      }
      public void setCModuleId(int cModuleId) {
      this.cModuleId = cModuleId;
      }
      public int getId() {
      return id;
      }
      public void setId(int id) {
      this.id = id;
      }
      @Column(name="MASTER_BLOCK_ID")
      public int getMasterBlockId() {
      return masterBlockId;
      }
      public void setMasterBlockId(int masterBlockId) {
      this.masterBlockId = masterBlockId;
      }
      ...
      }

      It gave me an error when I do the query

      from CModule f where f.cModuleId=?cModuleId

      it said the property unresolved

      but when I change the property and method to

      int cModuleId;
      public int getCmoduleId() {
      return cmoduleId;
      }
      public void setCmoduleId(int cModuleId) {
      this.cmoduleId = cModuleId;
      }

      and the query

      from CModule f where f.cmoduleId=?cModuleId

      it works, why?

      Thanks,
      Sadr LM