FileDocCategorySizeDatePackage
DefaultPersistenceProperties.javaAPI DocJBoss 4.2.11948Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

DefaultPersistenceProperties

public class DefaultPersistenceProperties extends Object
Comment
author
Bill Burke
version
$Revision: 55144 $

Fields Summary
private Properties
properties
Constructors Summary
public DefaultPersistenceProperties()

      URL propsUrl = this.getClass().getClassLoader().getResource("META-INF/persistence.properties");
      properties = new Properties();
      properties.load(propsUrl.openStream());
      /* Current hack to establish the hibernate bytecode provider from the
      externalized persistence.properties
      */
      String bcprovider = properties.getProperty("hibernate.bytecode.provider", "javassist");
      System.setProperty("hibernate.bytecode.provider", bcprovider);

   
Methods Summary
public java.util.PropertiesgetProperties()

      return properties;