-->
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.  [ 2 posts ] 
Author Message
 Post subject: New User-Hibernate example
PostPosted: Mon Oct 16, 2006 5:54 am 
Newbie

Joined: Thu Oct 12, 2006 8:38 am
Posts: 3
Hi am very new to this hibernate concept. I just went through Example given in http://www.hibernate.org/hib_docs/v3/re ... orial.html
I followed each and every step provided in the tutorial. But i dint get expected output when i run ant command.
The command i provided was >ant run -Daction=store
Expected output as given in tutorial is:
[java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?)

Am able to run this without any error. But i dont get expected output.
What i got was checking 0 named queries.

Can anyone please help me out n this.. Sorry if this is real silly question.
Thanks in advance

Here is the log:

Buildfile: D:\Developement\build.xml
clean:
[delete] Deleting directory D:\Developement\bin
[mkdir] Created dir: D:\Developement\bin
copy-resources:
[copy] Copying 7 files to D:\Developement\bin
compile:
clean:
[delete] Deleting directory D:\Developement\bin
[mkdir] Created dir: D:\Developement\bin
copy-resources:
[copy] Copying 7 files to D:\Developement\bin
compile:
run:
[java] 10:42:37,156 INFO Environment:456 - Hibernate 3.0rc1
[java] 10:42:37,171 INFO Environment:474 - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.hsqldb.jdbcDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=sa, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:hsqldb:., hibernate.connection.password=***, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
[java] 10:42:37,171 INFO Environment:501 - using java.io streams to persist binary types
[java] 10:42:37,187 INFO Environment:502 - using CGLIB reflection optimizer
[java] 10:42:37,203 INFO Environment:532 - using JDK 1.4 java.sql.Timestamp handling
[java] 10:42:37,203 INFO Configuration:1228 - configuring from resource: /hibernate.cfg.xml
[java] 10:42:37,203 INFO Configuration:1199 - Configuration resource: /hibernate.cfg.xml
[java] 10:42:37,703 INFO Configuration:439 - Mapping resource: events/Event.hbm.xml
[java] 10:42:37,921 INFO HbmBinder:256 - Mapping class: events.Event -> EVENTS
[java] 10:42:37,953 INFO Configuration:1340 - Configured SessionFactory: null
[java] 10:42:37,968 INFO Configuration:844 - processing extends queue
[java] 10:42:37,968 INFO Configuration:848 - processing collection mappings
[java] 10:42:37,968 INFO Configuration:857 - processing association property references
[java] 10:42:37,968 INFO Configuration:884 - processing foreign key constraints
[java] 10:42:38,140 INFO Dialect:89 - Using dialect: org.hibernate.dialect.SQLServerDialect
[java] 10:42:38,156 INFO SettingsFactory:87 - Maximum outer join fetch depth: 1
[java] 10:42:38,171 INFO SettingsFactory:90 - Default batch fetch size: 1
[java] 10:42:38,171 INFO SettingsFactory:94 - Generate SQL with comments: disabled
[java] 10:42:38,171 INFO SettingsFactory:98 - Order SQL updates by primary key: disabled
[java] 10:42:38,171 INFO SettingsFactory:273 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[java] 10:42:38,171 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
[java] 10:42:38,171 INFO SettingsFactory:106 - Query language substitutions: {no='N', yes='Y'}
[java] 10:42:38,187 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 10:42:38,187 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 10:42:38,187 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 10:42:38,187 INFO DriverManagerConnectionProvider:80 - using driver: net.sourceforge.jtds.jdbc.Driver at URL: jdbc:jtds:sqlserver://localhost:1433/A-Server
[java] 10:42:38,203 INFO DriverManagerConnectionProvider:86 - connection properties: {user=sa, password=****}
[java] 10:42:38,437 INFO SettingsFactory:156 - Scrollable result sets: enabled
[java] 10:42:38,437 INFO SettingsFactory:164 - JDBC3 getGeneratedKeys(): enabled
[java] 10:42:38,453 INFO TransactionFactoryFactory:34 - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
[java] 10:42:38,453 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[java] 10:42:38,453 INFO SettingsFactory:176 - Automatic flush during beforeCompletion(): disabled
[java] 10:42:38,453 INFO SettingsFactory:179 - Automatic session close at end of transaction: disabled
[java] 10:42:38,453 INFO SettingsFactory:260 - Cache provider: org.hibernate.cache.HashtableCacheProvider
[java] 10:42:38,468 INFO SettingsFactory:187 - Second-level cache: enabled
[java] 10:42:38,468 INFO SettingsFactory:192 - Optimize cache for minimal puts: disabled
[java] 10:42:38,468 INFO SettingsFactory:196 - Cache region prefix: hibernate.test
[java] 10:42:38,468 INFO SettingsFactory:199 - Structured second-level cache entries: enabled
[java] 10:42:38,468 INFO SettingsFactory:203 - Query cache: disabled
[java] 10:42:38,468 INFO SettingsFactory:210 - Echoing all SQL to stdout
[java] 10:42:38,468 INFO SettingsFactory:214 - Statistics: disabled
[java] 10:42:38,468 INFO SettingsFactory:218 - Deleted entity synthetic identifier rollback: disabled
[java] 10:42:38,484 INFO SettingsFactory:232 - Default entity-mode: pojo
[java] 10:42:38,734 INFO SessionFactoryImpl:140 - building session factory
[java] 10:42:39,234 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
[java] 10:42:39,234 INFO Dialect:89 - Using dialect: org.hibernate.dialect.SQLServerDialect
[java] 10:42:39,234 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 10:42:39,234 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 10:42:39,234 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 10:42:39,250 INFO DriverManagerConnectionProvider:80 - using driver: net.sourceforge.jtds.jdbc.Driver at URL: jdbc:jtds:sqlserver://localhost:1433/A-Server
[java] 10:42:39,250 INFO DriverManagerConnectionProvider:86 - connection properties: {user=sa, password=****}
[java] 10:42:39,250 INFO SchemaUpdate:105 - Running hbm2ddl schema update
[java] 10:42:39,250 INFO SchemaUpdate:117 - fetching database metadata
[java] 10:42:39,265 INFO SchemaUpdate:133 - updating schema
[java] 10:42:39,265 INFO Configuration:844 - processing extends queue
[java] 10:42:39,265 INFO Configuration:848 - processing collection mappings
[java] 10:42:39,265 INFO Configuration:857 - processing association property references
[java] 10:42:39,265 INFO Configuration:884 - processing foreign key constraints
[java] 10:42:40,343 INFO TableMetadata:38 - table found: Ad-Server.dbo.EVENTS
[java] 10:42:40,343 INFO TableMetadata:39 - columns: [event_id, title, event_date]
[java] 10:42:40,343 INFO TableMetadata:40 - foreign keys: []
[java] 10:42:40,343 INFO TableMetadata:41 - indexes: [pk_event]
[java] 10:42:40,343 INFO SchemaUpdate:153 - schema update complete
[java] 10:42:40,359 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:jtds:sqlserver://localhost:1433/A-Server
[java] 10:42:40,359 INFO SessionFactoryImpl:366 - Checking 0 named queries
BUILD SUCCESSFUL
Total time: 5 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 4:49 am 
Newbie

Joined: Thu Oct 12, 2006 8:38 am
Posts: 3
Hi all,
Can anyone please help me out..
Thanks in advance


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

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.