Hi all,
I would like to set the value of a table column with the result of a query about other table. That is:
the hbm.xml file is like:
................. <class name="......> <id name="id" type="java.lang.Long" unsaved-value="null"> <column name="ID" sql-type="NUMBER(19)"/> <generator class="native"> </generator> </id> ................. <property name="myProperty" type="long"> .................
when the row of my table is inserted, the value of myProperty is already saved with the result of a query (about other table) execution. The aim is to do this by configuration and not by java code.
Many thanks in advance
|