-->
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: error when Mixing Persistence, hbm.xml and annonation,
PostPosted: Thu Dec 29, 2005 6:00 am 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
i am a hb 2.x user, and now try to migrate to anonation and want to keep our code still esp the hbm.xml, now part of hibernate core.

i got this error.

xygen/cimande/components/entity/Person.hbm.xml
16:53:22,814 ERROR DTDEntityResolver:51 - Don't use old DTDs, read the Hibernate
3.x Migration Guide!
16:53:38,717 INFO Configuration:1368 - Configured SessionFactory: WebWorkHIS
16:53:38,948 INFO HbmBinder:266 - Mapping class: org.blueoxygen.cimande.compone


this is my hibernate mapping.

<mapping class="org.blueoxygen.cimande.components.entity.LovReligiousCode"/>
<mapping resource="org/blueoxygen/cimande/components/entity/Person.hbm.xml"/>


i try to use the resource become class=org.blueoxygen.cimande.components.entity.Person, still now work..

any one can help?


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.1

Mapping documents:
3.0

Code between sessionFactory.openSession() and session.close():
yes.

Name and version of the database you are using:

mysql 4.1

The generated SQL (show_sql=true):

yes

Debug level Hibernate log excerpt:

how? never know how to debug log.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 4:58 pm 
Regular
Regular

Joined: Wed Dec 21, 2005 6:57 pm
Posts: 70
Are you referencing the new DTD? In the online migration guide: http://www.hibernate.org/250.html#A20 it says

Update the DTD reference in your hbm XML files. Change http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd to http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in the DOCTYPE.

Alternatively, you might have old-style 2.1 tags that are not compabile with the 3.0 DTD.


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.