-->
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.  [ 2 posts ] 
Author Message
 Post subject: hbm2cfgxml adds new-line to cfg.xml that hbm2ddl chokes on
PostPosted: Wed Nov 08, 2006 1:00 pm 
Newbie

Joined: Wed Aug 09, 2006 1:27 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: beta8

Full stack trace of any exception that occurs: None

Name and version of the database you are using: hsqldb 1.8.0.1

The generated SQL (show_sql=true): NA

Debug level Hibernate log excerpt: -

hbm2cfgxml generates my hibernate.cfg.xml file. for developers who have spaces in the path to the database, hbm2cfgxml replaces one of the spaces with a new line in the connection.url (it appears it's trying to maintain a limit on the number of characters per line).

i have no beef with this.

the problem arises when hbm2ddl later uses the same hibernate.cfg.xml file. with that new-line in there, it decides it can't find the database and breaks. if i manually go in & replace the new line with a space (so the whole connection url is on one line), hbm2ddl works fine.

it seems to me this is a bug because if one tool is going to toss new lines into the middle of paths, then another tool from the same suite shouldn't complain about the presence of the space.

the path:

C:\Documents and Settings\SteelMJ\My Documents\A1 - SpaceNet\branches\spacenet_2.0\persistence\target\work\db\mydb

hbm2cfgxml throws a new line in afer the "A1 - ":

C:\Documents and Settings\SteelMJ\My Documents\A1 -
SpaceNet\branches\spacenet_2.0\persistence\target\work\db\mydb

hbm2ddl chokes on the path with the new line. when manually fixed to look like the first, hbm2ddl works again.

i did not find evidence of this problem in the forums after searching.

jason


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 08, 2006 6:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
report it in jira.

...but idon't get why you end up with so long paths in your cfg.xml in the first place.

_________________
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.  [ 2 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.