Hi .. when i were executed one simple program that try to storing data in one EVENTS table..and successfully insertion trasaction is done
config: IDE:Eclipse
DB:Hsql
app: non manages app.(commandline program)
But i got following error in my console!!
INFO - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost/test
INFO - connection properties: {user=sa, password=****}
INFO - Running hbm2ddl schema update
INFO - fetching database metadata
ERROR - could not get database metadata
java.sql.SQLException: Table not found in statement [select sequence_name from system_sequences]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:113)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:39)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:124)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:252)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:13)
at de.gloegl.road2hibernate.EventManager.store(EventManager.java:50)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:20)
ERROR - could not complete schema update
java.sql.SQLException: Table not found in statement [select sequence_name from system_sequences]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:113)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:39)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:124)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:252)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
at de.gloegl.road2hibernate.HibernateUtil.<clinit>(HibernateUtil.java:13)
at de.gloegl.road2hibernate.EventManager.store(EventManager.java:50)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:20)
INFO - cleaning up connection pool: jdbc:hsqldb:hsql://localhost/test
INFO - Checking 0 named queries
INFO - cleaning up connection pool: jdbc:hsqldb:hsql://localhost/test
Hibernate: insert into EVENTS (date, eventtitle, uid) values (?, ?, ?)
...pls needfully suggestion me!!!
javaAmtho!!
|