test_class.file: model/jpa/src/test/java/org/keycloak/connections/jpa/util/JpaUtilsTest.java
test_class.identifier: JpaUtilsTest
test_case.body: @Test
      public void testConvertTableName() {
          Assert.assertEquals("DATABASECHANGELOG_FOO", JpaUtils.getCustomChangelogTableName("foo"));
          Assert.assertEquals("DATABASECHANGELOG_FOOBAR", JpaUtils.getCustomChangelogTableName("foo123bar"));
          Assert.assertEquals("DATABASECHANGELOG_FOO_BAR", JpaUtils.getCustomChangelogTableName("foo_bar568"));
          Assert.assertEquals("DATABASECHANGELOG_FOO_BAR_C", JpaUtils.getCustomChangelogTableName("foo-bar-c568"));
          Assert.assertEquals("DATABASECHANGELOG_EXAMPLE_EN", JpaUtils.getCustomChangelogTableName("example-entity-provider"));
      }
test_case.class_method_signature: JpaUtilsTest.testConvertTableName()
test_case.full_signature: @Test public void testConvertTableName()
test_case.identifier: testConvertTableName
test_case.invocations: assertEquals getCustomChangelogTableName assertEquals getCustomChangelogTableName assertEquals getCustomChangelogTableName assertEquals getCustomChangelogTableName assertEquals getCustomChangelogTableName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertTableName()
focal_class.declarator: HIBERNATE_DEFAULT_SCHEMA = "hibernate.default_schema"
focal_class.modifier: public static final
focal_class.original_string: public static final String HIBERNATE_DEFAULT_SCHEMA = "hibernate.default_schema";
focal_class.type: String
focal_class.var_name: HIBERNATE_DEFAULT_SCHEMA
focal_class.file: model/jpa/src/main/java/org/keycloak/connections/jpa/util/JpaUtils.java
focal_class.identifier: JpaUtils
focal_class.class_method_signature: JpaUtils.getTableNameForNativeQuery(String tableName, EntityManager em)
focal_class.full_signature: public static String getTableNameForNativeQuery(String tableName, EntityManager em)
focal_class.identifier: getTableNameForNativeQuery
focal_class.modifiers: public static
focal_class.parameters: (String tableName, EntityManager em)
focal_class.return: String
focal_class.signature: String getTableNameForNativeQuery(String tableName, EntityManager em)
focal_class.class_method_signature: JpaUtils.createEntityManagerFactory(KeycloakSession session, String unitName, Map<String, Object> properties, boolean jta)
focal_class.full_signature: public static EntityManagerFactory createEntityManagerFactory(KeycloakSession session, String unitName, Map<String, Object> properties, boolean jta)
focal_class.identifier: createEntityManagerFactory
focal_class.modifiers: public static
focal_class.parameters: (KeycloakSession session, String unitName, Map<String, Object> properties, boolean jta)
focal_class.return: EntityManagerFactory
focal_class.signature: EntityManagerFactory createEntityManagerFactory(KeycloakSession session, String unitName, Map<String, Object> properties, boolean jta)
focal_class.class_method_signature: JpaUtils.getProvidedEntities(KeycloakSession session)
focal_class.full_signature: public static List<Class<?>> getProvidedEntities(KeycloakSession session)
focal_class.identifier: getProvidedEntities
focal_class.modifiers: public static
focal_class.parameters: (KeycloakSession session)
focal_class.return: List<Class<?>>
focal_class.signature: List<Class<?>> getProvidedEntities(KeycloakSession session)
focal_class.class_method_signature: JpaUtils.getCustomChangelogTableName(String jpaEntityProviderFactoryId)
focal_class.full_signature: public static String getCustomChangelogTableName(String jpaEntityProviderFactoryId)
focal_class.identifier: getCustomChangelogTableName
focal_class.modifiers: public static
focal_class.parameters: (String jpaEntityProviderFactoryId)
focal_class.return: String
focal_class.signature: String getCustomChangelogTableName(String jpaEntityProviderFactoryId)
focal_method.body: public static String getCustomChangelogTableName(String jpaEntityProviderFactoryId) {
          String upperCased = jpaEntityProviderFactoryId.toUpperCase();
          upperCased = upperCased.replaceAll("-", "_");
          upperCased = upperCased.replaceAll("[^A-Z_]", "");
          return "DATABASECHANGELOG_" + upperCased.substring(0, Math.min(10, upperCased.length()));
      }
focal_method.class_method_signature: JpaUtils.getCustomChangelogTableName(String jpaEntityProviderFactoryId)
focal_method.full_signature: public static String getCustomChangelogTableName(String jpaEntityProviderFactoryId)
focal_method.identifier: getCustomChangelogTableName
focal_method.invocations: toUpperCase replaceAll replaceAll substring min length
focal_method.modifiers: public static
focal_method.parameters: (String jpaEntityProviderFactoryId)
focal_method.return: String
focal_method.signature: String getCustomChangelogTableName(String jpaEntityProviderFactoryId)