Hello,

Does anybody know whether key generating by sequence works w/ SAP-DB?

I tried by the following in my mapping file but when running the program I always get a NotNull exception for the id field (i.e. the primary key "id" was not set)

<begin mapping.xml>
...
<key-generator name="SEQUENCE">
<param
name="sequence" value="stromboli"/>
<param
name="trigger" value="true"/>
</key-generator>
...
<class name="net.uniopt.biz.sys.Language" extends="net.uniopt.data.DataObject" identity="id" key-generator="SEQUENCE">
...
<end mapping.xml>

Regards,
michael

Reply via email to