Tabnine Logo
ImprovedNamingStrategy
Code IndexAdd Tabnine to your IDE (free)

How to use
ImprovedNamingStrategy
in
org.hibernate.cfg

Best Java code snippets using org.hibernate.cfg.ImprovedNamingStrategy (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

public String collectionTableName(
    String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable,
    String propertyName
) {
  return tableName( ownerEntityTable + '_' + propertyToColumnName(propertyName) );
}
origin: hibernate/hibernate-orm

/**
 * Return the argument
 */
public String joinKeyColumnName(String joinedColumn, String joinedTable) {
  return columnName( joinedColumn );
}
origin: hibernate/hibernate-orm

/**
 * Convert mixed case to underscores
 */
public String columnName(String columnName) {
  return addUnderscores(columnName);
}
origin: hibernate/hibernate

/**
 * Return the full property path prefixed by the unqualified class
 * name, with underscore seperators, mixed case converted to underscores
 */
public String propertyToTableName(String className, String propertyName) {
  return classToTableName(className) + '_' + propertyToColumnName(propertyName);
}
origin: com.github.mg365/mg-fw

@Override
public String propertyToColumnName(String propertyName) {
  return super.propertyToColumnName(propertyName);
}
origin: debop/hibernate-redis

/**
 * 지정된 테이블명의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserFigure => USER_FIGURE)
 *
 * @param tableName
 * @return
 */
@Override
public String tableName(String tableName) {
 return super.tableName(tableName).toUpperCase();
}
origin: mkuthan/example-spring

@Override
public String classToTableName(String className) {
  return TABLE_PREFIX + super.classToTableName(className);
}
origin: mkuthan/example-spring

@Override
public String joinKeyColumnName(String joinedColumn, String joinedTable) {
  return COLUMN_PREFIX + super.joinKeyColumnName(joinedColumn, joinedTable);
}
origin: com.github.mg365/mg-fw

  @Override
  public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) {
    String columnName = foreignKeyColumnPrefix + super.foreignKeyColumnName(propertyName, propertyEntityName, propertyTableName, referencedColumnName);
    return columnName;
  }
}
origin: mkuthan/example-spring

@Override
public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity,
    String associatedEntityTable, String propertyName) {
  return TABLE_PREFIX
      + super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable,
          propertyName);
}
origin: mkuthan/example-spring

@Override
public String propertyToColumnName(String propertyName) {
  return COLUMN_PREFIX + super.propertyToColumnName(propertyName);
}
origin: org.apache.tomee/openejb-jpa-integration

@Override
public String tableName(final String tableName) {
  return getPrefix() + super.tableName(tableName);
}
origin: debop/hibernate-redis

/**
 * 지정된 클래스의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserFigure => USER_FIGURE)
 *
 * @param className 클래스 명
 * @return Oracle 명명 규칙에 따른 테이블명
 */
@Override
public String classToTableName(String className) {
 return super.classToTableName(className).toUpperCase();
}
origin: org.nuiton.jpa/nuiton-jpa-hibernate

@Override
public String joinKeyColumnName(String joinedColumn, String joinedTable) {
  return getShortenedIdentifier(super.joinKeyColumnName(joinedColumn, joinedTable));
}
origin: org.nuiton.jpa/nuiton-jpa-hibernate

@Override
public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) {
  return getShortenedIdentifier(super.foreignKeyColumnName(propertyName, propertyEntityName, propertyTableName, referencedColumnName));
}
origin: com.github.mg365/mg-fw

@Override
public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) {
  return super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName);
}
origin: org.hibernate.orm/hibernate-core

public String collectionTableName(
    String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable,
    String propertyName
) {
  return tableName( ownerEntityTable + '_' + propertyToColumnName(propertyName) );
}
origin: hibernate/hibernate-orm

/**
 * Convert mixed case to underscores
 */
public String tableName(String tableName) {
  return addUnderscores(tableName);
}
/**
origin: hibernate/hibernate-orm

/**
 * Return the property name or propertyTableName
 */
public String foreignKeyColumnName(
    String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName
) {
  String header = propertyName != null ? StringHelper.unqualify( propertyName ) : propertyTableName;
  if (header == null) throw new AssertionFailure("NamingStrategy not properly filled");
  return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility
}
origin: debop/hibernate-redis

/**
 * 지정된 속성명의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserId => USER_ID)
 *
 * @param propertyName 속성명
 * @return Oracle 명명 규칙에 따른 컬럼명
 */
@Override
public String propertyToColumnName(String propertyName) {
 return super.propertyToColumnName(propertyName).toUpperCase();
}
org.hibernate.cfgImprovedNamingStrategy

Javadoc

An improved naming strategy that prefers embedded underscores to mixed case names

Most used methods

  • propertyToColumnName
    Return the full property path with underscore seperators, mixed case converted to underscores
  • columnName
    Convert mixed case to underscores
  • tableName
    Convert mixed case to underscores
  • addUnderscores
  • classToTableName
    Return the unqualified class name, mixed case converted to underscores
  • foreignKeyColumnName
    Return the property name or propertyTableName
  • joinKeyColumnName
    Return the argument
  • collectionTableName
  • logicalCollectionColumnName
    Return the column name if explicit or the concatenation of the property name and the referenced colu
  • logicalCollectionTableName
    Returns either the table name if explicit or if there is an associated table, the concatenation of o
  • <init>
  • logicalColumnName
    Return the column name or the unqualified property name
  • <init>,
  • logicalColumnName

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now