Examples of classToTableName()


Examples of contrib.org.hibernate.cfg.NamingStrategy.classToTableName()

    }
  }

  private String extractNameFromClassName(Class<T> clasz, MonjoConverterFactory factory) {
    NamingStrategy namingStrategy = factory.getNamingStrategy();
    return namingStrategy.classToTableName(clasz.getName());
  }

  private boolean annotatedWithCollection(Class<T> clasz) {
    return clasz.isAnnotationPresent(Entity.class) && !"".equals(clasz.getAnnotation(Entity.class).value());
  }
View Full Code Here

Examples of org.hibernate.cfg.ImprovedNamingStrategy.classToTableName()

    @Test
    public void improvedNaming_ClassToTableName() {
        ImprovedNamingStrategy namingStrategy = new ImprovedNamingStrategy();

        for (int i = 0; i < classNames.length; i++) {
            String tableName = namingStrategy.classToTableName(classNames[i]);
            assertThat(tableName).isEqualTo(tableNames[i]);
        }
    }

    @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.