public String foreignKeyColumnName( String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName ) { String header = propertyName != null ? addUnderscores( propertyName ) : propertyTableName; if ( header == null ) throw new AssertionFailure( "NamingStrategy not properly filled" ); return columnName( header + "_" + referencedColumnName ); }
@Override public String collectionTableName( String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName ) { return tableName( new StringBuilder( ownerEntityTable ).append( "_" ) .append( associatedEntityTable != null ? associatedEntityTable : addUnderscores( propertyName ) ).toString() ); }
@Override public String propertyToColumnName(String propertyName) { return addUnderscores( propertyName ); }
@Override public String logicalColumnName(String columnName, String propertyName) { return abbreviateName(super.logicalColumnName( addUnderscores(columnName), addUnderscores(propertyName))); }
@Override public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) { return abbreviateName(super.logicalCollectionColumnName( addUnderscores(columnName), addUnderscores(propertyName), addUnderscores(referencedColumn))); }
@Override public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName) { return abbreviateName(super.logicalCollectionTableName( addUnderscores(tableName), addUnderscores(ownerEntityTable), addUnderscores(associatedEntityTable), addUnderscores(propertyName))); }
@Override public String propertyToColumnName(String propertyName) { return abbreviateName(super .propertyToColumnName(addUnderscores(propertyName))); }
@Override public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) { return abbreviateName(super.collectionTableName( addUnderscores(ownerEntity), addUnderscores(ownerEntityTable), addUnderscores(associatedEntity), addUnderscores(associatedEntityTable), addUnderscores(propertyName))); }
/** * bw: Nazwa tabeli nie moze byc poprawnie stworzona poniewaz dostajemy unqualified class name, * see http://opensource.atlassian.com/projects/hibernate/browse/ANN-565 */ @Override public String classToTableName(String aClassName) { return abbreviateName(super.classToTableName(addUnderscores(aClassName))); } }
@Override public String propertyToColumnName(String propertyName) { return addUnderscores( propertyName ); }
@Override public String logicalColumnName(String columnName, String propertyName) { return abbreviateName(super.logicalColumnName( addUnderscores(columnName), addUnderscores(propertyName))); }
@Override public String logicalCollectionColumnName(String columnName, String propertyName, String referencedColumn) { return abbreviateName(super.logicalCollectionColumnName( addUnderscores(columnName), addUnderscores(propertyName), addUnderscores(referencedColumn))); }
@Override public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable, String propertyName) { return abbreviateName(super.logicalCollectionTableName( addUnderscores(tableName), addUnderscores(ownerEntityTable), addUnderscores(associatedEntityTable), addUnderscores(propertyName))); }
@Override public String propertyToColumnName(String propertyName) { return abbreviateName(super .propertyToColumnName(addUnderscores(propertyName))); }
@Override public String collectionTableName(String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName) { return abbreviateName(super.collectionTableName( addUnderscores(ownerEntity), addUnderscores(ownerEntityTable), addUnderscores(associatedEntity), addUnderscores(associatedEntityTable), addUnderscores(propertyName))); }
@Override public String classToTableName(String aClassName) { return abbreviateName(super .classToTableName(addUnderscores(aClassName))); } }
public String foreignKeyColumnName( String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName ) { String header = propertyName != null ? addUnderscores( propertyName ) : propertyTableName; if ( header == null ) throw new AssertionFailure( "NamingStrategy not properly filled" ); return columnName( header + "_" + referencedColumnName ); }
@Override public String collectionTableName( String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName ) { return tableName( new StringBuilder( ownerEntityTable ).append( "_" ) .append( associatedEntityTable != null ? associatedEntityTable : addUnderscores( propertyName ) ).toString() ); }
@Override public String propertyToColumnName(String propertyName) { return addUnderscores( propertyName ); }
public String foreignKeyColumnName( String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName ) { String header = propertyName != null ? addUnderscores( propertyName ) : propertyTableName; if ( header == null ) throw new AssertionFailure( "NamingStrategy not properly filled" ); return columnName( header + "_" + referencedColumnName ); }