By default, the hibernate jar includes the DTD's described. A custom EntityResolver is used, so that when the DTD id to be retrieved, it looks for the DTD's in the local hibernate jar first, only going to the internet if it is not present.
HIbernate 3 uses a different DTD to Hibernate 2, so if you're using that, the mapping file DOCTYPE should be:
Code:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http:/hibernate.sourceforge.net/hibernate.hibernate-mapping-3.0.dtd" >
If you use the style you mentioned with hibernate 3, it will not be included in the hibernate jar, and so will have to retrieve from the internet.[/code]