hi!
i receive the following error when i try to do the automatic artifact generation":
"error under artifact generation
reason: java.lang.ClassCastException: java.lang.Short"
the error message appears in a modal dialog.
my hybernate configuration:
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.username">******</property>
<property name="hibernate.connection.password">******</property>
<property name="hibernate.dialect">org.hibernate.dialect.IngresDialect</property>
<property name="hibernate.connection.url">jdbc:edbc://192.168.193.132:21071/dipasdem</property>
<property name="hibernate.connection.driver_class">ca.edbc.jdbc.EdbcDriver</property>
</session-factory>
</hibernate-configuration>
the basic settings for the artifact generation:
Console Configuration: Calculator
Output Directory: /Calculator/src
Reverse Engineer from JDBC Connection: checked
Package: com.ams.dipasdem
Generate Domain Code: checked (JSR 220/EJB3 checked)
Generate mappings: checked
Generate hibernate configuration: checked
my software configuration:
elipse 3.1m5a
jbosside 1.5m1
ejb3.0preview5
jdk5
related infos:
Hibernate version: 3.0.5
Mapping documents:none, they should be generated via artifact generation
Code between sessionFactory.openSession() and session.close():no code
Full stack trace of any exception that occurs:Code:
java.lang.ClassCastException: java.lang.Short
at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:2013)
at ca.edbc.jdbc.EdbcRslt.getInt(EdbcRslt.java:4187)
at org.hibernate.cfg.JDBCBinder.processBasicColumns(JDBCBinder.java:733)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:106)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:111)
Name and version of the database you are using:
CA Ingres 2.6
what's this error about and how can i solve it?
any help is appreciated... thanks in advance!