public String determineImplicitName(NamingStrategy strategy) { final String strategyResult = strategy.collectionTableName( ownerEntity, ownerObjectName, associatedEntity, unquotedAssocTable, propertyName ); return ownerEntityTableQuoted || associatedEntityTableQuoted ? StringHelper.quote( strategyResult ) : strategyResult; }
public String determineImplicitName(NamingStrategy strategy) { final String strategyResult = strategy.collectionTableName( ownerEntity, ownerObjectName, associatedEntity, unquotedAssocTable, propertyName ); return ownerEntityTableQuoted || associatedEntityTableQuoted ? StringHelper.quote( strategyResult ) : strategyResult; }
public String determineImplicitName(NamingStrategy strategy) { final String strategyResult = strategy.collectionTableName( ownerEntity, ownerObjectName, associatedEntity, unquotedAssocTable, propertyName ); return ownerEntityTableQuoted || associatedEntityTableQuoted ? StringHelper.quote( strategyResult ) : strategyResult; }
@Override public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) { String ownerEntity = source.getOwningEntityNaming().getEntityName(); String ownerEntityTable = NamingStrategyUtils.unqualifyEntityName(ownerEntity); String associatedEntity = null; String associatedEntityTable = null; String propertyName = getPropertyName(source.getOwningAttributePath()); String result = hibernate4Strategy.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName); return toIdentifier(result, source.getBuildingContext()); }
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 ); }
@Override public Identifier determineJoinTableName(ImplicitJoinTableNameSource source) { String ownerEntity = source.getOwningEntityNaming().getEntityName(); String ownerEntityTable = NamingStrategyUtils.unqualifyEntityName(ownerEntity); String associatedEntity = source.getNonOwningEntityNaming().getEntityName(); String associatedEntityTable = NamingStrategyUtils.unqualifyEntityName(associatedEntity); String propertyName = getPropertyName(source.getAssociationOwningAttributePath()); String result = hibernate4Strategy.collectionTableName(ownerEntity, ownerEntityTable, associatedEntity, associatedEntityTable, propertyName); return toIdentifier(result, source.getBuildingContext()); }
tableName = mappings.getNamingStrategy().collectionTableName( collection.getOwner().getEntityName(), logicalOwnerTableName ,
tableName = mappings.getNamingStrategy().collectionTableName( collection.getOwner().getEntityName(), logicalOwnerTableName ,
tableName = mappings.getNamingStrategy().collectionTableName( collection.getOwner().getEntityName(), logicalOwnerTableName ,
? Table.class.cast( owner.getPrimaryTable() ).getTableName().getName() : null; String collectionTableName = currentBindingContext.getNamingStrategy().collectionTableName( owner.getEntity().getName(), ownerTableLogicalName,
? Table.class.cast( owner.getPrimaryTable() ).getTableName().getName() : null; String collectionTableName = currentBindingContext.getNamingStrategy().collectionTableName( owner.getEntity().getName(), ownerTableLogicalName,