-->
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.  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sat Feb 26, 2005 10:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Ah - found a bug in the template - but it still should work if you dont set catalog or schema name at all!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 26, 2005 10:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
nope - not a bug found yet....there must be something else....
noticed it in jira http://opensource.atlassian.com/project ... se/HBX-117 so i dont forget

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 01, 2005 3:17 am 
Newbie

Joined: Mon Feb 21, 2005 4:19 am
Posts: 6
thank you very much. I'll pay close attention to it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 03, 2005 6:29 pm 
Beginner
Beginner

Joined: Mon Aug 01, 2005 3:10 pm
Posts: 22
Hi,

Did anyone find a solution to the problem in this thread?

I am using these versions:
Eclipse Version: 3.1.0 Build id: I20050627-1435
Eclipse Hibernate Tools plugin 3.0.0.alpha4
MySQL 4.1 (or MySQL 5.0)

The catalog="catalogName" attribute that shows up in the generated hbm.xml files.

Example:
<class name="mypackage.User" table="user" catalog="myDB">
where the tools uses the catalog value myDB - the name of the database in MySQL

That causes the problem of improper sql queries with the catalogName and underscore character prefixed before the actual table-name, and causing errors such as "table does not exist"

Also tried to fix this by adding these extra settings in hibernate.cfg.xml before generating the artifacts from the Hibernate Tools plugin
...
<property name="hibernate.default_schema"></property>
<property name="hibernate.default_catalog"></property>
...
but it still does not help since the catalog attribute remains with a blank string i.e. catalog="" and again causes sql query problems.

Is there any way to prevent the catalog attribute from getting generated?

Thanks,
Murtaza


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 4:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes - use the cvs version, fixed in there.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Hibernate or tools?
PostPosted: Thu Aug 11, 2005 9:05 am 
Newbie

Joined: Thu Aug 11, 2005 9:03 am
Posts: 1
max wrote:
yes - use the cvs version, fixed in there.


Hibernate or tools?

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 12, 2005 1:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
of tools....maybe also hibernate.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 13, 2005 5:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
this is fixed in the cvs version

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: works with hibernate-3.1rc3
PostPosted: Mon Nov 28, 2005 7:35 am 
Newbie

Joined: Mon Nov 28, 2005 7:25 am
Posts: 3
I experienced the same problems with hibernate-3.0.5. Later releases contain fixes for the catalog problem. Beware of the fact that you should not specify
<property name="hibernate.default_schema"></property>
in hibernate.cfg.xml as mentioned in earlier posts.
This will set schema to an empty string in org.hibernate.mapping.Table causing an underscore to be prepended to your table name.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 24 posts ]  Go to page Previous  1, 2

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.