-->
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: bug in hibernate3 tools and fix
PostPosted: Thu Feb 10, 2005 10:14 pm 
Beginner
Beginner

Joined: Thu Feb 03, 2005 7:23 pm
Posts: 23
Hello,

This is with hibernate3 tools. Under artifact generation when we create artifacts it generates us the mapping files and object. it is all working, but when we try to run schema export, (for oracle db) we get a missing left paranthesis error.

The reason is:

<column name="DEFINITION" not-null="false" sql-type="VARCHAR2" />

oracle does not like this, since one has to define the length of varchar 2.

<column name="DEFINITION" leghth="20" not-null="false" sql-type="VARCHAR2" />

does not work as well, but:

<column name="DEFINITION" not-null="false" sql-type="VARCHAR2(20)" />

works fine. I guess this qualifies as a bug.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 10, 2005 10:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is correct functionality. You have to specify the *full* type in sql-type.

ie. sql-type="VARCHAR2(10)"

Why on earth would you ever specify VARCHAR2 explicitly??? that is the default!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 3:36 am 
Beginner
Beginner

Joined: Thu Feb 03, 2005 7:23 pm
Posts: 23
Hello Gavin,

the mapping was generated by hibernate tools, I did not mean this as a bug in hibernate - but in hibernate tools. :)

I did the artifact generation with hibernate tools, and running schema export from hibernate console generated the error.

Best regards,
-O.B.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 5:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please submit it as a bug to the jira.

_________________
Max
Don't forget to rate


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.