-->
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.  [ 4 posts ] 
Author Message
 Post subject: reverse engineering von datenbanktabellen
PostPosted: Mon Jun 06, 2005 4:49 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
hallo!

ich erhalte folgenden fehler, wenn ich die "artifact generation" durchführe:
"error under artifact generation

reason: java.lang.ClassCastException: java.lang.Short"

der fehler tritt als modaler dialog auf.

meine hibernate konfigurationsdatei:
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>


die "basic settings zur artifact generation" sehen wie folgt aus:
Console Configuration: Calculator
Output Directory: /Calculator/src
Reverse Engineer from JDBC Connection: angehakt
Package: com.ams.dipasdem
Generate Domain Code: angehakt (JSR 220/EJB3 angehakt)
Generate mappings: angehakt
Generate hibernate configuration: angehakt



informationen zur meiner software-konfiguration:
elipse 3.1m5a
jbosside 1.5m1
ejb3.0preview5
hibernate3.0.5
jdk5


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 5:27 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
hab folgenden stacktrace zu meiner angesprochenen exception gefunden:

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)


alle tips um den fehler zu umgehen sind willkommen!
danke im voraus

mfg
MistaMoasn


Top
 Profile  
 
 Post subject: Re: reverse engineering von datenbanktabellen
PostPosted: Tue Jun 14, 2005 1:42 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
MistaMoasn wrote:
informationen zur meiner software-konfiguration:
elipse 3.1m5a
jbosside 1.5m1
ejb3.0preview5
hibernate3.0.5
jdk5


die datenbank ist ingres (2.6), das hatte ich zu erwähnen vergessen.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 5:20 am 
Beginner
Beginner

Joined: Mon Jun 06, 2005 4:23 am
Posts: 41
Location: Hagenberg, AUSTRIA
gibt's keine der ein ähnliches problem hat?

bin für jede hilfe dankbar!

schöne grüße
MistaMoasn


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.