-->
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: error in hibernate.cfg.xml dtd or in documentation
PostPosted: Tue Mar 09, 2004 9:46 am 
Newbie

Joined: Tue Mar 09, 2004 9:17 am
Posts: 12
Hi there,
hibernate 2.1.1
hssql

hmm looks like there is a bug in the dtd of the hibernate.cfg.xml.
As described in the docuymentation it is possible to add the mappings ala:
fConfig = new Configuration();
fConfig.addClass(InputProfil.class);

But the dtd of hibernate.cfg.xml require at least one mapping node.
Is there any solution where i can just add my mappings with the java api
addClass(Object.class); ?
Actually i have a dummy mapping in my hibernate.cfg.xml and add all othere mappings in my code, but this is a dirty hack.

Any hints how to solve the problem?

Thanks!
Stefan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 10:18 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://opensource.atlassian.com/project ... key=HB-397

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 10:46 am 
Newbie

Joined: Tue Mar 09, 2004 9:17 am
Posts: 12
Thanks!
This patch should be definitly part of the next release.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 2:54 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Then vote for it

_________________
Emmanuel


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.