title: hibernate property string length question
body: <p>I have an object mapped in hibernate like so:</p>
  
  <pre><code>&lt;property name="firstname" type="string"&gt;
    &lt;column name="FIRSTNAME" not-null="true" /&gt;
  &lt;/property&gt;
  
  &lt;property name=description" type="string"&gt;
    &lt;column name="DESCRIPTION" /&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>I'm using an ANT script to generate the database schema from the mapping file and the db fields get created with type VARCHAR size 255.</p>
  
  <p>My question is, how do I specify that the max length of the FIRSTNAME field is 25, and the max length of the DESCRIPTION field is 1000?  I tried adding a length attribute to the property tag (as follows) but it didn't work:</p>
  
  <pre><code>&lt;property name=description" type="string" length="1000"&gt;
    &lt;column name="DESCRIPTION" /&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>