-->
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: Custom sql insert and native id generator
PostPosted: Fri Mar 18, 2005 11:15 am 
Beginner
Beginner

Joined: Thu Sep 02, 2004 4:54 am
Posts: 24
Hi,
I'm trying to use some custom sql queries in order to insert some new values into a table. The problem is that hibernate doesn't call the sql query I want to use (calling 'Identity insert' instead of 'Insert 0', see log for details).
the problem may come from the fact that I let sql server choose the new raw ids. And I have red in an other topic that values (ouputs) can't be retrieved from the database with the current hibernate version (http://forum.hibernate.org/viewtopic.ph ... custom+sql). If I'm right, that's why hibernate call the identity insert?
Can someone help me please? I would like to avoid using the jdbc connection directly...
thanks

Hibernate version:
3.0 rc1

Mapping documents:
<class
name="fr.digimind.evolution.website.databeans.PageBean"
table="sitepage"
dynamic-update="false"
dynamic-insert="true"
>

<id
name="id"
column="id"
type="long"
unsaved-value="any"
>
<generator class="native">
</generator>
</id>

<property
name="date"
type="timestamp"
access="property"
column="date"
/>

<property
name="disappeared"
type="boolean"
access="property"
column="disappeared"
/>

<property
name="encoding"
type="string"
access="property"
column="encoding"
/>

<property
name="modified"
type="boolean"
access="property"
column="modified"
/>

<property
name="siteId"
type="long"
access="property"
column="site_id"
/>

<property
name="type"
type="string"
access="property"
column="type"
/>

<property
name="url"
type="string"
access="property"
column="url"
/>

<property
name="appeared"
type="boolean"
access="property"
column="appeared"
/>

<property
name="binaries"
type="binary"
access="property"
column="binaries"
/>

<property
name="highlight"
type="string"
access="property"
column="html"
/>

<property
name="summary"
type="string"
access="property"
column="summary"
/>

<property
name="size"
type="int"
access="property"
column="size"
/>
<sql-insert callable="true">
{? = call ws_add_site_page (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}
</sql-insert>

<sql-update callable="true">
{call ws_update_page (?,?,?,?,?,?,?,?,?,?,?,?,?)}
</sql-update>
</class>

the mapped class contains only some getters/setters

Code between sessionFactory.openSession() and session.close():

PageBean pb = new PageBean();
pb.setUrl("bla");
pb.setSiteId(460);
//the other raws can be null
sess.save(pb);

Name and version of the database you are using:
SQL Server 2000


Debug level Hibernate log excerpt:

14:53:18 DEBUG [org.hibernate.impl.SessionFactoryImpl] Session factory constructed with filter configurations : {}
14:53:18 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=sa, hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider, sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_05\bin, java.vm.version=1.4.2_05-b04, hibernate.proxool.pool_alias=pool1, hibernate.connection.username=sa, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=FR, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\JavaSoft\eclipse\workspace\Hibernate, java.runtime.version=1.4.2_05-b04, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\jreboul\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.java2d.fontpath=, hibernate.jdbc.batch_versioned_data=true, hibernate.cache.region_prefix=hibernate.test, java.library.path=C:\Program Files\Java\j2re1.4.2_05\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Tcl\bin;C:\Home\Programs\texmf\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\JavaSoft\ANT\bin;C:\JavaSoft\j2sdk1.4.2_05\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\cygwin\Home\gs\gs8.00\bin;:\cygwin\Home\gs\gs8.00\lib;C:\Program Files\JProbe Profiler 5.2.1\bin;C:\Program Files\Microsoft Visual Studio\VSS\netsetup.x86\VSS\win32;c:\JEvolution\ExtApp;C:\JavaSoft\MAVEN\bin;C:\Program Files\Fichiers communs\GTK\2.0\bin;"C:\Program Files\cvsnt";C:\JavaSoft\jikes\bin;, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.connection.pool_size=1, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, user.home=C:\Documents and Settings\jreboul, user.timezone=Europe/Paris, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=UTF-8, java.specification.version=1.4, hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver, java.class.path=C:\JavaSoft\eclipse\workspace\Hibernate\bin;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_TextSearcher_1.3.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_JmxServer.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_LocalClient_1.0.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_MailClient_1.0.0.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_Scrapper_1.0.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_Crawler_1.0.0.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_DataAccess_1.1.1.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_Commons_1.0.0.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_Content_1.2.0.5.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_HttpClient_1.0.2.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_SyntaxParser_1.0.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\digimind\digimind_Diff_1.0.2.3.jar;C:\JavaSoft\eclipse\workspace\WebSite\bin;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\activation.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ant-contrib-0.6.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\avalon-framework-4.1.5.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\Base64.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\c3p0-0.8.4.5.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\carrot-trc.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cglib-full-2.0.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cleanimports.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cocoon-2.0.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\colt-1.0.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\colt-1.0.3-trimmed.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-codec-1.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-collections-2.1.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-collections-2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-httpclient-2.0.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-logging-1.0.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-net-1.2.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\concurrent-1.3.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\connector.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cpdetector_1.01.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\dom4j-1.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ehcache-0.9.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\hibernate3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\htmlparser.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\iiop.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\informa.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\iText.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jaas.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jade.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jade.zip;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jakarta-oro-2.0.8.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-common-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-j2ee.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-jmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jbosssx-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-system.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-transaction-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jdbc2_0-stdext.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jdom.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jnp-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jsr173_1.0_api.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jsse.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\log4j.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\lucene-1.4-final.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\lucene-analyzers-dev.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\luceneSowball.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mail.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\maven-xdoclet-plugin-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\msbase.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mssqlserver.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\msutil.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-impl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-jmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-remote.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-rimpl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-rjmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-tools.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\nekohtml.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ngramj.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\odmg-3.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\oscache-2.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\proxool-0.8.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\resolver.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\sdx-2.2-vm14.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\servlet-api.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\struts.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\swarmcache-1.0rc2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\weka.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xalan-2.4.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-apache-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-ejb-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-fr_FR-locale-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-hibernate-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-java-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-jboss-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-jmx-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-mx4j-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-pt_BR-locale-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-web-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-webwork-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-xdoclet-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xercesImpl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xercesSamples.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xjavadoc-1.0.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xml-apis.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xmlParserAPIs.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xpp3-1.1.3.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\activation.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ant-contrib-0.6.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\avalon-framework-4.1.5.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\Base64.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\c3p0-0.8.4.5.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\carrot-trc.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cglib-full-2.0.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cleanimports.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cocoon-2.0.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\colt-1.0.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\colt-1.0.3-trimmed.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-codec-1.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-collections-2.1.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-collections-2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-httpclient-2.0.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-logging-1.0.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\commons-net-1.2.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\concurrent-1.3.2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\connector.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\cpdetector_1.01.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\dom4j-1.4.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ehcache-0.9.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\htmlparser.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\iiop.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\informa.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\iText.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jaas.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jakarta-oro-2.0.8.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-common-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-j2ee.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-jmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jbosssx-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-system.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jboss-transaction-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jdbc2_0-stdext.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jdom.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jnp-client.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jsr173_1.0_api.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\jsse.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\log4j.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\lucene-1.4-final.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\lucene-analyzers-dev.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\luceneSowball.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mail.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\maven-xdoclet-plugin-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\msbase.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mssqlserver.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\msutil.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-impl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-jmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-remote.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-rimpl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-rjmx.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\mx4j-tools.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\nekohtml.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\ngramj.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\odmg-3.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\oscache-2.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\proxool-0.8.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\resolver.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\sdx-2.2-vm14.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\servlet-api.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\struts.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\swarmcache-1.0rc2.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\weka.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xalan-2.4.0.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-apache-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-ejb-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-fr_FR-locale-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-hibernate-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-java-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-jboss-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-jmx-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-mx4j-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-pt_BR-locale-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-web-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-webwork-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xdoclet-xdoclet-module-1.2.1.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xercesImpl.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xercesSamples.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xjavadoc-1.0.3.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xml-apis.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xmlParserAPIs.jar;C:\JavaSoft\eclipse\workspace\_JEvolution\lib\ext\xpp3-1.1.3.3.jar;C:\Home\Programs\hibernate-3.0\hibernate3.jar;C:\JavaSoft\eclipse\workspace\Hibernate\etc, user.name=jreboul, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', java.vm.specification.version=1.0, java.home=C:\Program Files\Java\j2re1.4.2_05, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.SQLServerDialect, hibernate.connection.url=jdbc:microsoft:sqlserver://sumatra:1433;DatabaseName=Test_Hibernate;SelectMethod=Cursor, user.language=fr, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, hibernate.jdbc.use_streams_for_binary=true, java.version=1.4.2_05, java.ext.dirs=C:\Program Files\Java\j2re1.4.2_05\lib\ext, sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_05\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_05\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_05\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_05\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_05\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_05\classes, java.vendor=Sun Microsystems Inc., hibernate.jdbc.batch_size=0, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, hibernate.max_fetch_depth=1, sun.cpu.isalist=pentium i486 i386}
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Static SQL for entity: fr.digimind.evolution.website.databeans.PageBean
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Version select: select id from sitepage where id =?
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Snapshot select: select pagebean.id, pagebean.date as date0_, pagebean.disappeared as disappea3_0_, pagebean.encoding as encoding0_, pagebean.modified as modified0_, pagebean.site_id as site_id0_, pagebean.type as type0_, pagebean.url as url0_, pagebean.appeared as appeared0_, pagebean.binaries as binaries0_, pagebean.html as html0_, pagebean.summary as summary0_, pagebean.size as size0_ from sitepage pagebean where pagebean.id=?
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Insert 0: {? = call ws_add_site_page (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Update 0: {call ws_update_page (?,?,?,?,?,?,?,?,?,?,?,?,?)}
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Delete 0: delete from sitepage where id=?
14:53:19 DEBUG [org.hibernate.persister.BasicEntityPersister] Identity insert: insert into sitepage (date, disappeared, encoding, modified, site_id, type, url, appeared, binaries, html, summary, size) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) select scope_identity()
14:53:19 DEBUG [org.hibernate.loader.EntityLoader] Static select for entity fr.digimind.evolution.website.databeans.PageBean: select pagebean0_.id as id0_, pagebean0_.date as date0_0_, pagebean0_.disappeared as disappea3_0_0_, pagebean0_.encoding as encoding0_0_, pagebean0_.modified as modified0_0_, pagebean0_.site_id as site_id0_0_, pagebean0_.type as type0_0_, pagebean0_.url as url0_0_, pagebean0_.appeared as appeared0_0_, pagebean0_.binaries as binaries0_0_, pagebean0_.html as html0_0_, pagebean0_.summary as summary0_0_, pagebean0_.size as size0_0_ from sitepage pagebean0_ where pagebean0_.id=?
14:53:19 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] initializing class SessionFactoryObjectFactory
14:53:19 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] registered: 402881c802b5f0780102b5f07eca0000 (unnamed)
14:53:19 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
14:53:19 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiated session factory
14:53:19 INFO [org.hibernate.impl.SessionFactoryImpl] Checking 0 named queries
14:53:20 DEBUG [org.hibernate.impl.SessionImpl] opened session
14:53:20 DEBUG [org.hibernate.engine.Cascades] id unsaved-value strategy ANY
14:53:20 DEBUG [org.hibernate.impl.SessionImpl] saveOrUpdate() unsaved instance
14:53:20 DEBUG [org.hibernate.event.AbstractSaveEventListener] saving [fr.digimind.evolution.website.databeans.PageBean#<null>]
14:53:20 DEBUG [org.hibernate.event.AbstractSaveEventListener] executing insertions
14:53:20 DEBUG [org.hibernate.persister.BasicEntityPersister] Inserting entity: fr.digimind.evolution.website.databeans.PageBean (native id)
14:53:20 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open: 0 open PreparedStatements, 0 open ResultSets
14:53:20 DEBUG [org.hibernate.SQL] insert into sitepage (disappeared, modified, site_id, url, appeared, size) values (?, ?, ?, ?, ?, ?) select scope_identity()
14:53:20 DEBUG [org.hibernate.jdbc.AbstractBatcher] preparing statement
14:53:20 DEBUG [org.hibernate.persister.BasicEntityPersister] Dehydrating entity: [fr.digimind.evolution.website.databeans.PageBean#<null>]
14:53:20 DEBUG [org.hibernate.type.BooleanType] binding 'false' to parameter: 1
14:53:21 DEBUG [org.hibernate.type.BooleanType] binding 'false' to parameter: 2
14:53:21 DEBUG [org.hibernate.type.LongType] binding '460' to parameter: 3
14:53:21 DEBUG [org.hibernate.type.StringType] binding 'bla' to parameter: 4
14:53:21 DEBUG [org.hibernate.type.BooleanType] binding 'false' to parameter: 5
14:53:21 DEBUG [org.hibernate.type.IntegerType] binding '0' to parameter: 6
14:53:21 DEBUG [org.hibernate.persister.BasicEntityPersister] Natively generated identity: 34198
14:53:21 DEBUG [org.hibernate.jdbc.AbstractBatcher] done closing: 0 open PreparedStatements, 0 open ResultSets
14:53:21 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] flushing session
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] Flushing entities and processing referenced collections
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] Processing unreferenced collections
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] Scheduling collection removes/(re)creates/updates
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
14:53:21 DEBUG [org.hibernate.pretty.Printer] listing entities:
14:53:21 DEBUG [org.hibernate.pretty.Printer] fr.digimind.evolution.website.databeans.PageBean{summary=null, type=null, siteId=460, date=null, disappeared=false, id=34198, appeared=false, binaries=null, modified=false, encoding=null, highlight=null, url=bla, size=0}
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] executing flush
14:53:21 DEBUG [org.hibernate.event.AbstractFlushingEventListener] post flush
14:53:21 DEBUG [org.hibernate.impl.SessionImpl] closing session
14:53:21 DEBUG [org.hibernate.impl.SessionImpl] disconnecting session


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.