Thanks for answering and trying to get me online here, ofcourse you
will have your credit when I pass this obstacle !
I changed my hibernate.cfg.xml to the following:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class"> org.gjt.mm.mysql.Driver </property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.url"> jdbc:mysql://localhost/db060621</property>
<property name="hibernate.connection.username"> root</property>
<!-- property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property -->
<property name="hibernate.dialect"> org.hibernate.dialect.MySQLInnoDBDialect</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class"> thread</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class"> org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql"> true</property>
<!-- Drop and re-create the database schema on startup -->
<!-- property name="hbm2ddl.auto">create</property -->
<mapping resource="is/in/domain/Player.hbm.xml" />
</session-factory>
</hibernate-configuration>
Am i using the wrong jar from mysql ?
The error I get is the following ( probably not a good idea to write the a part of the log here ? ).
Quote:
12:32:24,109 INFO Environment:464 - Hibernate 3.0.5
12:32:24,156 INFO Environment:477 - hibernate.properties not found
12:32:24,187 INFO Environment:510 - using CGLIB reflection optimizer
12:32:24,187 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
12:32:24,343 INFO Configuration:1110 - configuring from resource: /hibernate.cfg.xml
12:32:24,343 INFO Configuration:1081 - Configuration resource: /hibernate.cfg.xml
12:32:25,078 INFO Configuration:444 - Mapping resource: is/in/domain/Player.hbm.xml
12:32:25,328 INFO HbmBinder:260 - Mapping class: is.ingimar.domain.Player -> player
12:32:25,359 INFO Configuration:1222 - Configured SessionFactory: null
12:32:25,375 INFO Configuration:875 - processing extends queue
12:32:25,375 INFO Configuration:879 - processing collection mappings
12:32:25,375 INFO Configuration:888 - processing association property references
12:32:25,375 INFO Configuration:917 - processing foreign key constraints
12:32:25,640 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
12:32:25,640 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
12:32:25,640 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
12:32:25,671 INFO DriverManagerConnectionProvider:80 - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/db060621
12:32:25,671 INFO DriverManagerConnectionProvider:86 - connection properties: {user=root, password=****}
12:32:26,625 INFO SettingsFactory:77 - RDBMS: MySQL, version: 5.0.22-community-nt
12:32:26,625 INFO SettingsFactory:78 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.13 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
12:32:26,687 INFO Dialect:92 - Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
12:32:26,687 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
12:32:26,703 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
12:32:26,703 INFO SettingsFactory:125 - Automatic flush during beforeCompletion(): disabled
12:32:26,703 INFO SettingsFactory:129 - Automatic session close at end of transaction: disabled
12:32:26,703 INFO SettingsFactory:136 - JDBC batch size: 15
12:32:26,703 INFO SettingsFactory:139 - JDBC batch updates for versioned data: disabled
12:32:26,703 INFO SettingsFactory:144 - Scrollable result sets: enabled
12:32:26,703 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): enabled
12:32:26,718 INFO SettingsFactory:160 - Connection release mode: null
12:32:26,718 INFO SettingsFactory:184 - Maximum outer join fetch depth: 2
12:32:26,718 INFO SettingsFactory:187 - Default batch fetch size: 1
12:32:26,718 INFO SettingsFactory:191 - Generate SQL with comments: disabled
12:32:26,718 INFO SettingsFactory:195 - Order SQL updates by primary key: disabled
12:32:26,718 INFO SettingsFactory:334 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
12:32:26,718 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
12:32:26,718 INFO SettingsFactory:203 - Query language substitutions: {}
12:32:26,734 INFO SettingsFactory:209 - Second-level cache: enabled
12:32:26,734 INFO SettingsFactory:213 - Query cache: disabled
12:32:26,734 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.NoCacheProvider
12:32:26,734 INFO SettingsFactory:228 - Optimize cache for minimal puts: disabled
12:32:26,734 INFO SettingsFactory:237 - Structured second-level cache entries: disabled
12:32:26,750 INFO SettingsFactory:257 - Echoing all SQL to stdout
12:32:26,750 INFO SettingsFactory:261 - Statistics: disabled
12:32:26,765 INFO SettingsFactory:265 - Deleted entity synthetic identifier rollback: disabled
12:32:26,765 INFO SettingsFactory:279 - Default entity-mode: pojo
12:32:26,984 INFO SessionFactoryImpl:152 - building session factory
12:32:27,625 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
12:32:27,625 INFO SessionFactoryImpl:379 - Checking 0 named queries
12:32:27,859 ERROR PARSER:35 - *** ERROR: line 1:6: unexpected token: is
org.hibernate.hql.ast.QuerySyntaxError: unexpected token: is near line 1, column 6 [from is.in.domain.Player]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:63)
regards, i