-->
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: Where's the latest reverse-engineering DTD?
PostPosted: Sat Oct 25, 2008 11:25 am 
Newbie

Joined: Fri Oct 24, 2008 5:13 am
Posts: 3
Hello everyone,

Everywhere I look for reverse engineering examples I see the following DTD referenced:

http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd

However, this does not appear to be the latest version (hibernate.sf.net is deprecated right?)

For example, I have the following in my reverse engineering xml file:
Code:
<table catalog="bFine" schema="dba" name="license" class="DbLicense">
   <meta attribute="class-code">
/**
* Default serial version ID (generated by Hibernate reverse engineering)
*/
private static final long serialVersionUID = 1L;
   </meta>
   <primary-key>
      <generator class="native"></generator>
   </primary-key>
</table>

This does not validate. I get errors on the <meta /> tag, because in the DTD it says:
Code:
<!ELEMENT table (primary-key?, column*, foreign-key*) >

But the <meta /> tag is valid according to the documentation! (And also: generating the POJO's works and respects the <meta /> tag!)

So my question: where's the latest DTD?? I've looked in the repository but can't seem to find it... :(

With kind regards,

Jurrie


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2008 2:03 pm 
Newbie

Joined: Fri Sep 05, 2008 7:55 pm
Posts: 5
Look in the latest hibernate-tools.jar.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2008 4:51 pm 
Newbie

Joined: Fri Oct 24, 2008 5:13 am
Posts: 3
It's true that the DTD is in the Hibernate Tools jar, but what if I don't want to install Hibernate Tools? Maybe I'm not even using Eclipse...

A (partial) solution is to reference to the source code repository by ViewVC:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://viewvc.jboss.org/cgi-bin/viewvc.cgi/hibernate/trunk/HibernateExt/tools/src/java/org/hibernate/hibernate-reverse-engineering-3.0.dtd?view=co">


The nicer solution would be for the Hibernate developers to upload the DTD to http://hibernate.org/dtd/hibernate-reve ... ng-3.0.dtd I guess... Why isn't this done??


Top
 Profile  
 
 Post subject: Re: Where's the latest reverse-engineering DTD?
PostPosted: Thu Feb 02, 2012 4:08 pm 
Newbie

Joined: Thu Feb 02, 2012 3:21 pm
Posts: 1
3 1/2 years later and the updated dtd is still not available online? Even though it is backwards-compatible with the old dtd?

I am trying to use hbm2java from the hibernate3 maven plugin, extracting the documentation etc from the database and populating the <meta> tags for the tables and columns. I gave up on getting Eclipse hibernate-tools working because of all the class conflicts when trying to use it in a maven project, validation errors in the reveng.xml file, etc.

I had to point to the online version at http://seaminaction.googlecode.com/svn/ ... ng-3.0.dtd in order to get the validations and maven plugin to work.


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.