-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hibernate configuration file wizard generates malformed xml
PostPosted: Wed Mar 02, 2005 5:30 pm 
Beginner
Beginner

Joined: Mon Jun 21, 2004 7:59 pm
Posts: 21
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: Eclipse plugin 3.0 alpha1

Name and version of the database you are using: Oracle

Eclipse Version: 3.1M5

I didn't see this in JIRA, so figure I'd post here first (like the JIRA page says).

When I use the hibernate.cfg.xml Eclipse wizard it generates the following, invalid file. Note the space required before the session-factory declaration and the name attribute. It's easy to fix, but someone should know about it.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factoryname="foo">
        <property name="hibernate.connection.username">foo</property>
        <property name="hibernate.connection.password">bar</property>
        <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
        <property name="hibernate.connection.url">jdbc:oracle:thin:@dev-db01:1521:foo</property>
        <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
    </session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 7:23 pm 
Hibernate Team
Hibernate Team

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

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 7:46 pm 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
Well I'm a begginer to hibernate. Please tell me what do you mean with that "put it in the jira"?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 7:55 pm 
Beginner
Beginner

Joined: Mon Jun 21, 2004 7:59 pm
Posts: 21
He means post it in their defect tracking system so a developer can spend more time on it. It helps make defect resolution and release tracking easier than doing this in the forum.

If you're having the same problem the work around is just to add the space between session-factory and name. The console then has no trouble with the file.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 8:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
See http://hibernate.org/217.html
Use the link at the bottom


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 02, 2005 9:27 pm 
Beginner
Beginner

Joined: Mon Jun 21, 2004 7:59 pm
Posts: 21
Thanks. Already posted in JIRA, just answering Gottin's question. There seemed to be some confusion as to what jira was (a module within Hibernate, filesystem, etc).


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