KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > utils > xml > desc > HibernateDTDs


1 package com.bull.eclipse.jonas.utils.xml.desc;
2
3
4
5 /**
6  * This class defines the declarations of DTDs for ejbjar.xml and jonas-ejbjar.xml
7  * @author Philippe Coq
8  */

9 public class HibernateDTDs extends CommonsDTDs {
10
11     /**
12      * List of hibernate dtds
13      */

14     private static final String JavaDoc[] HIBERNATE_DTDS = new String JavaDoc[] {
15         "hibernate-mapping-2.0.dtd",
16         "hibernate-configuration-2.0.dtd",
17         "hibernate-generic.dtd"
18     };
19
20     /**
21      * List of hibernate publicId
22      */

23     private static final String JavaDoc[] HIBERNATE_DTDS_PUBLIC_ID = new String JavaDoc[] {
24         "-//Hibernate/Hibernate Mapping DTD 2.0//EN",
25         "-//Hibernate/Hibernate Configuration DTD//EN",
26         "-//Hibernate/Hibernate generic XML databinding format//EN"
27     };
28
29
30
31
32     /**
33      * Build a new object for web.xml DTDs handling
34      */

35     public HibernateDTDs() {
36         super();
37         addMapping(HIBERNATE_DTDS, HIBERNATE_DTDS_PUBLIC_ID);
38     }
39
40 }
41
Popular Tags