private ObjectNameSource buildNameContext(String unquotedOwnerTable, String unquotedAssocTable) { String logicalName = mappings.getNamingStrategy().logicalCollectionTableName( name, unquotedOwnerTable, unquotedAssocTable, propertyName ); if ( StringHelper.isQuoted( ownerEntityTable ) || StringHelper.isQuoted( associatedEntityTable ) ) { logicalName = StringHelper.quote( logicalName ); } return new AssociationTableNameSource( name, logicalName ); }
private ObjectNameSource buildNameContext(String unquotedOwnerTable, String unquotedAssocTable) { String logicalName = mappings.getNamingStrategy().logicalCollectionTableName( name, unquotedOwnerTable, unquotedAssocTable, propertyName ); if ( StringHelper.isQuoted( ownerEntityTable ) || StringHelper.isQuoted( associatedEntityTable ) ) { logicalName = StringHelper.quote( logicalName ); } return new AssociationTableNameSource( name, logicalName ); }
private ObjectNameSource buildNameContext(String unquotedOwnerTable, String unquotedAssocTable) { String logicalName = mappings.getNamingStrategy().logicalCollectionTableName( name, unquotedOwnerTable, unquotedAssocTable, propertyName ); if ( StringHelper.isQuoted( ownerEntityTable ) || StringHelper.isQuoted( associatedEntityTable ) ) { logicalName = StringHelper.quote( logicalName ); } return new AssociationTableNameSource( name, logicalName ); }
public Table bind() { //logicalName only accurate for assoc table... String logicalName = mappings.getNamingStrategy() .logicalCollectionTableName( name, ownerEntityTable == null ? null : ownerEntityTable.getName(), //we remove potential quotes associatedEntityTable == null ? null : associatedEntityTable.getName(), //we remove potential quotes propertyName ); String extendedName = name != null ? mappings.getNamingStrategy().tableName( name ) : mappings.getNamingStrategy() .collectionTableName( ownerEntity, ownerEntityTable == null ? null : ownerEntityTable.getName(), //we remove potential quotes associatedEntity, associatedEntityTable == null ? null : associatedEntityTable.getName(), //we remove potential quotes propertyName ); return fillTable( schema, catalog, extendedName, logicalName, isAbstract, uniqueConstraints, constraints, denormalizedSuperTable, mappings ); }