hi *!
i did some experimenting with the native id generator in oracle (OracleDialect). my test was simply adding a new object with a auto-generated id and a name.
here the mapping:
Code:
<class name="test" table="cbx_test">
<id name="id" column="cbx_id" type="int" unsaved-value="-1">
<generator class="native"/>
</id>
<property name="name" column="cbx_name" />
</class>
so when i added the object with Session.saveOrUpdate, nothing happened (no data in database). after turning on sql output, i recognized, that a sequence HIBERNATE_SEQUENCE was selected, and because it wasn't found (i didn't create it), update statements were performed (which did nothing).
my expectation would be that some exception will be thrown, if this sequence isn't found or if update statements return zero modified lines.
j