jhomenet.persistence
Class ImportFromClasspathEntityResolver

java.lang.Object
  extended by DTDEntityResolver
      extended by jhomenet.persistence.ImportFromClasspathEntityResolver

public class ImportFromClasspathEntityResolver
extends DTDEntityResolver

Extends Hibernate's default resolver with lookup of entities on classpath.

For example, the following can be resolved:

 
 
 ]>

 

 &usertypes;
 ...
 
The file will be looked up in the classpath. Don't forget the leading slash! Relative location is not supported.

Author:
christian.bauer@jboss.com

Constructor Summary
ImportFromClasspathEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportFromClasspathEntityResolver

public ImportFromClasspathEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)


Copyright © 2004-2005 David Irwin. All Rights Reserved.