Hi,
Until recently we used Oracle sequences to generate the IDs of a table. This is now changed, a new ID is now calculated by an Oracle function. Which means that my application needs a change to adept to the new situation. The application is a Spring/Hibernate webApp, which access the Oracle database. This was configured in an hbm.xml as follows:
<class name="TableHib" table="TABLENAME" >
<id name="Id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQTABLE</param>
</generator>
</id>
Question is of course: what is a solution to use the result of Oracle function for the new value of the ID?
Help is much appreciated, thanks in advance.