I've several statements that are looking redundant saving MarketConfiguration :
Code :
session.session.saveOrUpdate(aMarketconfiguration)
Log :
Hibernate: select MARKET_CONFIGURATION_SEQ.nextval from dual
Hibernate: select MARKET_OBJECT_SEQ.nextval from dual
Hibernate: select MARKET_OBJECT_SEQ.nextval from dual
Hibernate: insert into MARKET_CONFIGURATION (NAME, MARKET_CONFIGURATION_ID) values (?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into FX_RATE (CODE, DESCRIPTION, IS_ACTIVE, CURRENCY, CURRENCY_UNIT, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into CURRENCY (CODE, DESCRIPTION, IS_ACTIVE, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?)
Hibernate: insert into CURRENCY (CODE, DESCRIPTION, IS_ACTIVE, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?)
Hibernate: insert into CURRENCY (CODE, DESCRIPTION, IS_ACTIVE, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?)
Hibernate: insert into CURRENCY (CODE, DESCRIPTION, IS_ACTIVE, MARKET_CONFIGURATION_ID, OBJECT_ID) values (?, ?, ?, ?, ?)
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update FX_RATE set CODE=?, DESCRIPTION=?, IS_ACTIVE=?, CURRENCY=?, CURRENCY_UNIT=? where OBJECT_ID=?
Hibernate: update CURRENCY set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update CURRENCY set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update CURRENCY set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update CURRENCY set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Hibernate: update FX_RATE set MARKET_CONFIGURATION_ID=? where OBJECT_ID=?
Structure :
<class name="MarketConfiguration" table="MARKET_CONFIGURATION">
<id name="id" column="MARKET_CONFIGURATION_ID">
<generator class="seqhilo">
<param name="sequence">MARKET_CONFIGURATION_SEQ</param>
<param name="max_lo">10</param>
</generator>
</id>
<property name="name" length="20" column="NAME" unique="true"/>
<set name="fxRates" lazy="false" cascade="all-delete-orphan">
<key column="MARKET_CONFIGURATION_ID" not-null="true"/>
<one-to-many class="FxRate"/>
</set>
<set name="currencies" lazy="false" cascade="all-delete-orphan">
<key column="MARKET_CONFIGURATION_ID" not-null="true"/>
<one-to-many class="Currency"/>
</set>
</class>
<union-subclass name="Currency" extends="BaseMarketObject" table="CURRENCY">
</union-subclass>
<union-subclass name="FxRate" extends="BaseMarketObject" table="FX_RATE">
<many-to-one name="currency" class="Currency" lazy="false" column="CURRENCY"/>
<property name="unit" column="CURRENCY_UNIT"/>
</union-subclass>
Can somebody help me telling me what is wrong (appart from rfm) ?
|