title: Hibernate - PropertyNotFoundException: Could not find a getter for
body: <p>I have a class that looks like the following:</p>
  
  <pre><code>public class MyClass {
      private String dPart1;
  
      public String getDPart1() {
          return dPart1;
      }
  
      public void setDPart1(String dPart1) {
          this.dPart1 = dPart1;
      }
  }
  </code></pre>
  
  <p>My hibernate mapping file maps the property as follows:</p>
  
  <pre><code>&lt;property name="dPart1" not-null="true"/&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>org.hibernate.PropertyNotFoundException: Could not find a getter for dPart1 in class com.mypackage.MyClass
          at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
          at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
          at org.hibernate.mapping.Property.getGetter(Property.java:272)
          at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:247)
          at org.hibernate.tuple.entity.AbstractEntityTuplizer.&lt;init&gt;(AbstractEntityTuplizer.java:125)
          at org.hibernate.tuple.entity.PojoEntityTuplizer.&lt;init&gt;(PojoEntityTuplizer.java:55)
          at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.&lt;init&gt;(EntityEntityModeToTuplizerMapping.java:56)
          at org.hibernate.tuple.entity.EntityMetamodel.&lt;init&gt;(EntityMetamodel.java:302)
          at org.hibernate.persister.entity.AbstractEntityPersister.&lt;init&gt;(AbstractEntityPersister.java:434)
          at 
  </code></pre>
  
  <p>It appears that hibernate doesn't like my capitalization. How should I fix this?</p>