title: Printing serial number in jasper report detail
body: <p>I have created a jasper report. In that report in detail areaI have "serialNumber" column. That column wants to be auto incrementive and stats with "1". I am using <code>hibernate</code> for query.
  Sample code is :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;detail&gt;
      &lt;band height="17" splitType="Stretch"&gt;
          &lt;textField isBlankWhenNull="true"&gt;
              &lt;reportElement x="12" y="0" width="27" height="15"/&gt;
              &lt;textElement/&gt;
              &lt;textFieldExpression class="java.lang.Integer"&gt;&lt;![CDATA[serialNumber]]&gt;
              &lt;/textFieldExpression&gt;
          &lt;/textField&gt;
          &lt;textField&gt;
              &lt;reportElement x="51" y="0" width="37" height="15"/&gt;
              &lt;textElement textAlignment="Center" verticalAlignment="Middle"/&gt;
              &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{date}]]&gt;
              &lt;/textFieldExpression&gt;
          &lt;/textField&gt;
          &lt;textField&gt;
              &lt;reportElement x="138" y="0" width="75" height="15"/&gt;
              &lt;textElement textAlignment="Center" verticalAlignment="Middle"/&gt;
              &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{time}]]&gt;
              &lt;/textFieldExpression&gt;
          &lt;/textField&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p>Can anyone help to print serial number in jasper report.</p>