hi to all,
i need help in generating a sequence number for one of my property in my hibernate-mapping.. i tried to use the attribute "generated" but hibernate encounters error.
here's the log:
2006-02-03 10:12:54,437~DEBUG~com.jbhunt.biz.assets.fuel.automated.core.util.BeanFactoryLoader~ Start configure(path)
2006-02-03 10:12:54,578~DEBUG~com.jbhunt.biz.assets.fuel.automated.core.util.BeanFactoryLoader~ End configure(path)
2006-02-03 10:12:54,890~ERROR~org.hibernate.util.XMLHelper~ Error parsing XML: XML InputStream(25) Attribute "generated" must be declared for element type "property".
2006-02-03 10:12:54,890~ERROR~org.hibernate.util.XMLHelper~ Error parsing XML: XML InputStream(25) Attribute "generated" must be declared for element type "property".
here's the excerpt of my hibernate mapping:
<id name="fuelPurchaseRequestId"
column="FL_PUR_REQ_I" type="integer" unsaved-value="null">
<generator class="sequence" >
<param name="sequence">FL_PUR_REQ_I_SEQ</param>
</generator>
</id>
<property name="purchaseOrderNumberPrefix"
column="PO_PFX" type="com.jbhunt.biz.assets.fuel.automated.core.util.TrimmedString"
not-null="false" unique="false" update="true" insert="true"
optimistic-lock="true" lazy="false"/>
<property name="purchaseOrderNumber"
column="PO_NBR" type="integer"
not-null="false" unique="true" update="true" insert="true"
optimistic-lock="true" lazy="false" generated="insert"/>
is there any other way on how i can generate a sequence no. for the property "purchaseOrderNumber"
any suggestionS?
thanks in advance! =)
|