From: <sc...@hy...> - 2009-07-06 23:38:34
|
Author: scottmf Date: 2009-07-06 16:38:31 -0700 (Mon, 06 Jul 2009) New Revision: 13470 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=13470 Modified: trunk/sql/events/TriggerEvent.hbm.xml Log: fix hbm so that ID is specified twice on inserts and updates in sql stmt Modified: trunk/sql/events/TriggerEvent.hbm.xml =================================================================== --- trunk/sql/events/TriggerEvent.hbm.xml 2009-07-06 22:55:49 UTC (rev 13469) +++ trunk/sql/events/TriggerEvent.hbm.xml 2009-07-06 23:38:31 UTC (rev 13470) @@ -5,6 +5,7 @@ reads then updates event objects serially with an exclusive lock. Thus, we don't need an optimistic locking strategy and the associated overhead. --> <class name="TriggerEvent" table="EAM_TRIGGER_EVENT" optimistic-lock="none"> + <cache usage="read-write"/> <id name="id" type="long"> <column name="ID" not-null="true"/> <generator class="org.hyperic.hibernate.id.ComboGenerator"> @@ -12,11 +13,11 @@ </generator> </id> - <properties name="measurementId" unique="false"> + <properties name="triggerIdIndx" unique="false"> <property name="triggerId" type="integer"> <column name="TRIGGER_ID" not-null="true" index="TRIGGER_EVENT_TRIGGER_ID_IDX"/> - </property> - <property name="id" index="TRIGGER_EVENT_TRIGGER_ID_IDX"/> + </property> + <property name="id" column="ID" update="false" insert="false" index="TRIGGER_EVENT_TRIGGER_ID_IDX"/> </properties> <property lazy="true" name="eventObject" type="binary"> |