play.db.jpa
类 JPAConfigurationExtension

java.lang.Object
  继承者 play.db.jpa.JPAConfigurationExtension

public abstract class JPAConfigurationExtension
extends java.lang.Object

Implementors of this class can extend the Ejb3Configuration before it is used to build the EntityManagerFactory


构造方法摘要
JPAConfigurationExtension()
           
 
方法摘要
abstract  void configure(org.hibernate.ejb.Ejb3Configuration cfg)
          Performs additional configuration on the JPA configuration.
 java.lang.String getConfigurationName()
          Override this method in order to restrict the extension to a specific db configuration.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

JPAConfigurationExtension

public JPAConfigurationExtension()
方法详细信息

getConfigurationName

public java.lang.String getConfigurationName()
Override this method in order to restrict the extension to a specific db configuration. By default, this method returns null and hence applies to all JPAConfigurationExtension-s.

返回:
the db config name as in the properties file this extension should provide to, null if it should apply to all database configurations.

configure

public abstract void configure(org.hibernate.ejb.Ejb3Configuration cfg)
Performs additional configuration on the JPA configuration.

参数:
cfg - the Ejb3Configuration to configure


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly