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