-->
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: hibernate with sql server.......Couldnot insert error.......
PostPosted: Tue Dec 13, 2011 1:15 pm 
Newbie

Joined: Tue Dec 13, 2011 8:08 am
Posts: 2
I,am a beginer in hibernate. I done a java application with SQL server 2005 as db. I got the following error. Can anybody please resolve it................


Dec 13, 2011 10:37:01 PM org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.2.0.Final
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.6.8.Final
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.objects.UserDetails
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.objects.UserDetails on table UserDetails
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
INFO: Hibernate Validator not found: ignoring
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbc:odbc:test
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=jj, password=****}
Dec 13, 2011 10:37:03 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 13, 2011 10:37:03 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextualLobCreation
INFO: Disabling contextual LOB creation as JDBC driver reported JDBC version [2] less than 4
Dec 13, 2011 10:37:03 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 13, 2011 10:37:03 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
Dec 13, 2011 10:37:03 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Dec 13, 2011 10:37:03 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Check Nullability in Core (should be disabled when Bean Validation is on): enabled
Dec 13, 2011 10:37:03 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@d9660d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [clob] overrides previous : org.hibernate.type.ClobType@bb0d0d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@bb0d0d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [blob] overrides previous : org.hibernate.type.BlobType@55e55f
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@55e55f
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@145c859
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@64883c
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@2c1e6b
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@811c88
Dec 13, 2011 10:37:04 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 208, SQLState: S0002
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'UserDetails'.
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 8180, SQLState: 37000
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
org.hibernate.exception.SQLGrammarException: could not insert: [com.objects.UserDetails]


Thanking You in advance.........


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.