-->
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.  [ 7 posts ] 
Author Message
 Post subject: changes in DTD on hibernate.org ?
PostPosted: Tue Oct 05, 2004 6:50 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
Hi gang,

I just looked in DTD ( 2.0, on hibernate org ) and discovered that
there are new attributes for <property> ( index & formula )

Yet it's still 2.0, no version changes.
So I updated xdoclet-2 plugin for hibernate to support this.
And I was immediately bombed by hibernate in my unit test
( I'm using now 2.1.4 in production ) - xml parser said it does not like this attribute...


What is your strategy to deal with changes in dtd ?

regards,

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 6:55 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Pretty much straightforward: The DTD for the release is packaged inside the release, in hibernate2.jar. This is the latest and working DTD, in your case, in the Hibernate 2.1.6 distribution.

The DTDs you can find on http://hibernate.sourceforge.net/ (there are none on hibernate.org) are also the latest released versions for the stable (2.0/2.1) and testing (3.0) branch. Sometimes we have a few days lag after a new release, but it shouldn't matter: Resolvers have to read the DTD from the hibernate2.jar file, anything else would be broken.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 7:04 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
christian wrote:
Pretty much straightforward: The DTD for the release is packaged inside the release, in hibernate2.jar. This is the latest and working DTD, in your case, in the Hibernate 2.1.6 distribution.


Hmm, then I'd have to care for hibernate version in xdoclet-plugin
( or at least to document what is supported and what is not )

But that version is still 2.0 confuses me...

BTW, do you plan to add index support for collection elements (
primitives ) and keys?

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 7:14 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I don't know what the "xdoclet plugin" is, certainly not a maintained and official part of Hibernate. There is nothing confusing about the 2.0 mapping DTD, its valid for Hibernate 2.0 and 2.1 though.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 8:58 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
christian wrote:
I don't know what the "xdoclet plugin" is, certainly not a maintained and official part of Hibernate. There is nothing confusing about the 2.0 mapping DTD, its valid for Hibernate 2.0 and 2.1 though.


it's certainly not maintained by hibernate. it's plugin for xdoclet-2
maintained by me and couple of others.

and you may imagine, that it has to follow hibernate DTD
somehovw, and it's difficult if it changes without version change...

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 8:59 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
So, just take the latest version of the DTD from the distributed package, whenever there is a new release.

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
He means the Hibernate XDoclet module. He's one of the maintainers.


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