-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Help
PostPosted: Wed May 25, 2005 1:49 pm 
Newbie

Joined: Mon May 16, 2005 5:27 am
Posts: 5
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) ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.