hey,
i am trying to configure the hbm class
Code:
<hibernate-mapping package="com.dynwar.transaction">
<class name="com.dynwar.transaction.actions.TransactionBean" table="transactions">
<id column="transactionID" name="transactionID">
<generator class="identity"/>
</id>
<property column="transactionType" name="transactionType" not-null="true"/>
<property column="transactionAmount" name="transactionAmount"/>
<property column="transactionDate" name="transactionDate" type="date"/>
<many-to-one name="users" column="username" not-null="true"/>
</class>
</hibernate-mapping>
how can i set the transactionID to be of a certain size ( let's say 6 or 8 digits once generated)
is there a way to the generator to a specific size?