public String collectionTableName( String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName ) { return tableName( ownerEntityTable + '_' + propertyToColumnName(propertyName) ); }
/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
/** * Convert mixed case to underscores */ public String columnName(String columnName) { return addUnderscores(columnName); }
/** * 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); }
@Override public String propertyToColumnName(String propertyName) { return super.propertyToColumnName(propertyName); }
/** * 지정된 테이블명의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserFigure => USER_FIGURE) * * @param tableName * @return */ @Override public String tableName(String tableName) { return super.tableName(tableName).toUpperCase(); }
@Override public String classToTableName(String className) { return TABLE_PREFIX + super.classToTableName(className); }
@Override public String joinKeyColumnName(String joinedColumn, String joinedTable) { return COLUMN_PREFIX + super.joinKeyColumnName(joinedColumn, joinedTable); }
@Override public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) { String columnName = foreignKeyColumnPrefix + super.foreignKeyColumnName(propertyName, propertyEntityName, propertyTableName, referencedColumnName); return columnName; } }
@Override public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) { return TABLE_PREFIX + super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName); }
@Override public String propertyToColumnName(String propertyName) { return COLUMN_PREFIX + super.propertyToColumnName(propertyName); }
@Override public String tableName(final String tableName) { return getPrefix() + super.tableName(tableName); }
/** * 지정된 클래스의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserFigure => USER_FIGURE) * * @param className 클래스 명 * @return Oracle 명명 규칙에 따른 테이블명 */ @Override public String classToTableName(String className) { return super.classToTableName(className).toUpperCase(); }
@Override public String joinKeyColumnName(String joinedColumn, String joinedTable) { return getShortenedIdentifier(super.joinKeyColumnName(joinedColumn, joinedTable)); }
@Override public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) { return getShortenedIdentifier(super.foreignKeyColumnName(propertyName, propertyEntityName, propertyTableName, referencedColumnName)); }
@Override public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) { return super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName); }
public String collectionTableName( String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName ) { return tableName( ownerEntityTable + '_' + propertyToColumnName(propertyName) ); }
/** * Convert mixed case to underscores */ public String tableName(String tableName) { return addUnderscores(tableName); } /**
/** * 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 }
/** * 지정된 속성명의 단어들을 underscore(_) 로 구분된 문자열로 변환합니다. (UserId => USER_ID) * * @param propertyName 속성명 * @return Oracle 명명 규칙에 따른 컬럼명 */ @Override public String propertyToColumnName(String propertyName) { return super.propertyToColumnName(propertyName).toUpperCase(); }