@Override public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) { Identifier identifier = toIdentifier( source.getOwningPhysicalTableName().getText() + "_" + transformAttributePath( source.getOwningAttributePath() ), source.getBuildingContext() ); if ( source.getOwningPhysicalTableName().isQuoted() ) { identifier = Identifier.quote( identifier ); } return identifier; }
@Override public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) { // This impl uses the owner entity table name instead of the JPA entity name when // generating the implicit name. final String name = source.getOwningPhysicalTableName().getText() + '_' + transformAttributePath( source.getOwningAttributePath() ); return toIdentifier( name, source.getBuildingContext() ); }
@Override public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) { Identifier identifier = toIdentifier( source.getOwningPhysicalTableName().getText() + "_" + transformAttributePath( source.getOwningAttributePath() ), source.getBuildingContext() ); if ( source.getOwningPhysicalTableName().isQuoted() ) { identifier = Identifier.quote( identifier ); } return identifier; }
@Override public Identifier determineCollectionTableName(ImplicitCollectionTableNameSource source) { Identifier i = super.determineCollectionTableName(source); LOGGER.trace("determineCollectionTableName {} {} {} -> {}", source.getOwningEntityNaming(), source.getOwningPhysicalTableName(), source.getOwningAttributePath(), i); return i; }