-->
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.  [ 3 posts ] 
Author Message
 Post subject: Suggestion about the 3.1 release's hibernate mapping dtd
PostPosted: Tue Aug 30, 2005 12:22 pm 
Newbie

Joined: Mon Jan 03, 2005 7:31 pm
Posts: 4
Hibernate version:
Hibernate 3.1 beta 2

Mapping documents:
any from the distribution

I've noticed that the Hibernate mapping DTD has changed in at least 1 detail, the lazy attribute of the various Hibernate collections elements now supports {true, false, extra} rather than only {true, false} as in 3.0.

Given that the DTD has changed, it seems reasonable to suggest that you modify the revision of the current DTD from 3.0 to 3.1, and make it available at the appropriate URL. If the references in the distributed hbm.xml files were modified then all of the changes would be in sync.

Given that you haven't posted a 3.1 compliant DTD at your website, I was wondering why the 3.1 distribution works when a mapping file references lazy="extra", e.g. UserPermissions.hbm.xml. Is XML catalog code included in the distribution that causes the code to access the locally distributed DTD, which does include the proper lazy attribute definitions?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 12:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put this one to the jira, because you might have a point about this.

but anyhow the reason why it works without problems is that we ship the dtd in the jar, and we look there first - otherwise the parsing of the xml would be extremely slow for most people.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 30, 2005 5:53 pm 
Newbie

Joined: Mon Jan 03, 2005 7:31 pm
Posts: 4
Done HHH-916


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