public class JpaUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HIBERNATE_DEFAULT_SCHEMA |
Constructor and Description |
---|
JpaUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.persistence.EntityManagerFactory |
createEntityManagerFactory(KeycloakSession session,
String unitName,
Map<String,Object> properties,
boolean jta) |
static String |
getCustomChangelogTableName(String jpaEntityProviderFactoryId)
Get the name of custom table for liquibase updates for give ID of JpaEntityProvider
|
static List<Class<?>> |
getProvidedEntities(KeycloakSession session)
Get a list of all provided entities by looping over all configured entity providers.
|
static String |
getTableNameForNativeQuery(String tableName,
javax.persistence.EntityManager em) |
public static final String HIBERNATE_DEFAULT_SCHEMA
public static String getTableNameForNativeQuery(String tableName, javax.persistence.EntityManager em)
public static javax.persistence.EntityManagerFactory createEntityManagerFactory(KeycloakSession session, String unitName, Map<String,Object> properties, boolean jta)
public static List<Class<?>> getProvidedEntities(KeycloakSession session)
session
- the keycloak sessionCopyright © 2020 JBoss by Red Hat. All rights reserved.