クラス EntityManagerFactoryBuilder

java.lang.ObjectSE
org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder

public class EntityManagerFactoryBuilder extends ObjectSE
JPA EntityManagerFactory インスタンス用の便利なビルダー。構築時に一般的な構成を収集し、流れるようなビルダーパターンを使用して 1 つ以上の LocalContainerEntityManagerFactoryBean を作成できるようにします。最も一般的なオプションはビルダーでカバーされていますが、@Bean 定義から返す前に、より詳細な制御が必要な場合はいつでもビルダーの製品を操作できます。
導入:
1.3.0
作成者:
Dave Syer, Phillip Webb, Stephane Nicoll
  • コンストラクターの詳細

    • EntityManagerFactoryBuilder

      public EntityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter, MapSE<StringSE,?> jpaProperties, PersistenceUnitManager persistenceUnitManager)
      複数の EntityManagerFactory インスタンスが作成された場合に共有される共通部分を渡す新しいインスタンスを作成します。
      パラメーター:
      jpaVendorAdapter - ベンダーアダプター
      jpaProperties - 永続性プロバイダーに渡される JPA プロパティ
      persistenceUnitManager - 永続性ユニット情報のオプションのソース (null でもかまいません)
    • EntityManagerFactoryBuilder

      public EntityManagerFactoryBuilder(JpaVendorAdapter jpaVendorAdapter, MapSE<StringSE,?> jpaProperties, PersistenceUnitManager persistenceUnitManager, URLSE persistenceUnitRootLocation)
      複数の EntityManagerFactory インスタンスが作成された場合に共有される共通部分を渡す新しいインスタンスを作成します。
      パラメーター:
      jpaVendorAdapter - ベンダーアダプター
      jpaProperties - 永続性プロバイダーに渡される JPA プロパティ
      persistenceUnitManager - 永続性ユニット情報のオプションのソース (null でもかまいません)
      persistenceUnitRootLocation - フォールバックまたは null として使用する永続化ユニットのルートの場所
      導入:
      1.4.1
  • メソッドの詳細