public class EntityManagerFactoryBuilder.Builder extends Object
Modifier and Type | Method and Description |
---|---|
LocalContainerEntityManagerFactoryBean |
build() |
EntityManagerFactoryBuilder.Builder |
packages(Class<?>... basePackageClasses)
The classes whose packages should be scanned for
@Entity
annotations. |
EntityManagerFactoryBuilder.Builder |
packages(String... packagesToScan)
The names of packages to scan for
@Entity annotations. |
EntityManagerFactoryBuilder.Builder |
persistenceUnit(String persistenceUnit)
The name of the persistence unit.
|
EntityManagerFactoryBuilder.Builder |
properties(Map<String,String> properties)
Generic properties for standard JPA or vendor-specific configuration.
|
public EntityManagerFactoryBuilder.Builder packages(String... packagesToScan)
@Entity
annotations.packagesToScan
- packages to scanpublic EntityManagerFactoryBuilder.Builder packages(Class<?>... basePackageClasses)
@Entity
annotations.basePackageClasses
- the classes to usepublic EntityManagerFactoryBuilder.Builder persistenceUnit(String persistenceUnit)
persistenceUnit
- the name of the persistence unitpublic EntityManagerFactoryBuilder.Builder properties(Map<String,String> properties)
JpaProperties
used to
create the builder.properties
- the properties to usepublic LocalContainerEntityManagerFactoryBean build()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.