-->
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.  [ 5 posts ] 
Author Message
 Post subject: Schema text failed: No Dialect mapping for JDBC type: 2004
PostPosted: Thu May 27, 2004 8:10 am 
Newbie

Joined: Mon Nov 03, 2003 9:09 am
Posts: 4
ant -> SchemaExportTask error: Schema text failed: No Dialect mapping for JDBC type: 2004

1. Environment:
DBMS: Informix-OnLine Version 7.22.UC2
JDBC: Informix JDBC Driver 2.21.JC3

2. hibernate.properties:
Code:
    hibernate.dialect net.sf.hibernate.dialect.InformixDialect

    hibernate.connection.url jdbc:informix-sqli://192.168.0.202:8899/testDB:informixserver=testDB
    hibernate.connection.username testUser
    hibernate.connection.password testUser
    ......


3. build.xml:
Code:
    <target name="build-db" description="build database">
      <taskdef name="schemaexport"
      classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
      classpathref="runtime.classpath"/>
      <schemaexport
        properties="src/hibernate.properties"
        quiet="yes"
        text="yes"
        drop="no"
        delimiter=";"
        output="${basedir}/DB/testDB.sql">
        <fileset dir="${build.home}/WEB-INF/classes">
            <include name="**/*.hbm.xml"/>
        </fileset>
      </schemaexport>
    </target> 


Question:
Run ant build-db, error occurs: Schema text failed: No Dialect mapping for JDBC type: 2004

I try it in this way:
1) in User.hbm.xml:
Code:
       <property name="portrait" type="blob" update="true" insert="true" column="portrait"/>,

        <id name="pid" column="pid" type="java.lang.Long" unsaved-value="null">
            <generator class="hilo"></generator>
        </id>
      ......


when I delete the property of portrait, then run the task "ant build-db" success, and can make testDB.sql, but not create any table in Database. when i execute the sql of testDB.sql in Informix 7, syntax error occured, I check testDB.sql, found: java.lang.Long is mapped to
type: INT8, if I change INT8 to int, the sql can't work, other syntax occured.

please give directions to me,
thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 8:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Post the full stacktrace please.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 9:08 am 
Newbie

Joined: Mon Nov 03, 2003 9:09 am
Posts: 4
E:\test>ant build-db
Code:
Buildfile: build.xml

build-db:

BUILD FAILED
file:E:/BPE/build.xml:471: Schema text failed: No Dialect mapping for JDBC type: 2004

Total time: 6 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 8:10 pm 
Newbie

Joined: Mon Nov 03, 2003 9:09 am
Posts: 4
how on earth ?

please give directions to me,


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 28, 2004 8:52 pm 
Newbie

Joined: Mon Nov 03, 2003 9:09 am
Posts: 4
???


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