/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
@Override public String classToTableName(final String className) { return this.addPrefix(super.classToTableName(className)); }
@Override public String logicalCollectionTableName(final String tableName, final String ownerEntityTable, final String associatedEntityTable, final String propertyName) { return this.addPrefix(super.logicalCollectionTableName(tableName, ownerEntityTable, associatedEntityTable, propertyName)); }
@Override public String collectionTableName(final String ownerEntity, final String ownerEntityTable, final String associatedEntity, final String associatedEntityTable, final String propertyName) { return this.addPrefix(super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName)); }
@Override public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName) { String value = super.foreignKeyColumnName(propertyName, propertyEntityName, propertyTableName, referencedColumnName); return StringUtils.substring(tablePrefix + addUnderscores(value), 0, maxLength); }
@Override public String joinKeyColumnName(String joinedColumn, String joinedTable) { String value = super.joinKeyColumnName(joinedColumn, joinedTable); return StringUtils.substring(tablePrefix + addUnderscores(value), 0, maxLength); }
@Override public String classToTableName(String className) { String value = super.classToTableName(className); return StringUtils.substring(tablePrefix + addUnderscores(value), 0, maxLength); }
@Override public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName) { String value = super.logicalCollectionTableName(tableName, ownerEntityTable, associatedEntityTable, propertyName); return StringUtils.substring(tablePrefix + addUnderscores(value), 0, maxLength); }
@Override public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) { String value = super.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName); return StringUtils.substring(tablePrefix + addUnderscores(value), 0, maxLength); }
/** * 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("NammingStrategy not properly filled"); return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility }
/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
/** * Return the argument */ public String joinKeyColumnName(String joinedColumn, String joinedTable) { return columnName( joinedColumn ); }
/** * 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("NammingStrategy not properly filled"); return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility }
/** * 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("NammingStrategy not properly filled"); return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility }
/** * 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("NammingStrategy not properly filled"); return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility }
/** * 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("NammingStrategy not properly filled"); return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility }