collectionBinding.setCollectionTable( persistentClass.getTable() ); collectionBinding.setCollectionTable( collectionTable );
column.setPersistentClass( associatedClass, joins, inheritanceStatePerClass ); column.setJoins( joins ); collection.setCollectionTable( column.getTable() );
collValue.setCollectionTable( table ); String entityName = collectionEntity.getEntityName(); for (Ejb3JoinColumn column : joinColumns) { collValue.setCollectionTable( associationTableBinder.bind() );
collValue.setCollectionTable( table ); String entityName = collectionEntity.getEntityName(); for (Ejb3JoinColumn column : joinColumns) { collValue.setCollectionTable( associationTableBinder.bind() );
column.setPersistentClass( associatedClass, joins, inheritanceStatePerClass ); column.setJoins( joins ); collection.setCollectionTable( column.getTable() );
collection.setCollectionTable(collectionTable); // CHILD+
collection.setCollectionTable(collectionTable); // CHILD+
getSubselect( node ), false ); collection.setCollectionTable( table ); bindComment(table, node);
collection.setCollectionTable( persistentClass.getTable() );
collection.setCollectionTable( persistentClass.getTable() );
collection.setCollectionTable( persistentClass.getTable() );
false ); collection.setCollectionTable( table ); bindComment(table, node);
private static void bindCollectionTable(GrailsDomainClassProperty property, Mappings mappings, Collection collection, Table ownerTable, String sessionFactoryBeanName) { String prefix = ownerTable.getSchema(); PropertyConfig config = getPropertyConfig(property); JoinTable jt = config != null ? config.getJoinTable() : null; NamingStrategy namingStrategy = getNamingStrategy(sessionFactoryBeanName); String tableName = (prefix == null ? "" : prefix + '.') + (jt != null && jt.getName() != null ? jt.getName() : namingStrategy.tableName(calculateTableForMany(property, sessionFactoryBeanName))); String schemaName = mappings.getSchemaName(); String catalogName = mappings.getCatalogName(); if(jt != null) { if(jt.getSchema() != null) { schemaName = jt.getSchema(); } if(jt.getCatalog() != null) { catalogName = jt.getCatalog(); } } collection.setCollectionTable(mappings.addTable( schemaName, catalogName, tableName, null, false)); }
protected void bindCollectionTable(ToMany property, Mappings mappings, Collection collection, Table ownerTable, String sessionFactoryBeanName) { String owningTableSchema = ownerTable.getSchema(); PropertyConfig config = getPropertyConfig(property); JoinTable jt = config != null ? config.getJoinTable() : null; NamingStrategy namingStrategy = getNamingStrategy(sessionFactoryBeanName); String tableName = (jt != null && jt.getName() != null ? jt.getName() : namingStrategy.tableName(calculateTableForMany(property, sessionFactoryBeanName))); String schemaName = mappings.getSchemaName(); String catalogName = mappings.getCatalogName(); if(jt != null) { if(jt.getSchema() != null) { schemaName = jt.getSchema(); } if(jt.getCatalog() != null) { catalogName = jt.getCatalog(); } } if(schemaName == null && owningTableSchema != null) { schemaName = owningTableSchema; } collection.setCollectionTable(mappings.addTable( schemaName, catalogName, tableName, null, false)); }
collection.setCollectionTable(associatedClass.getTable());
collection.setCollectionTable(associatedClass.getTable());
collectionBinding.setCollectionTable( persistentClass.getMappedTable() ); collectionBinding.setCollectionTable( collectionTable );
column.setPersistentClass( associatedClass, joins, inheritanceStatePerClass ); column.setJoins( joins ); collection.setCollectionTable( column.getTable() );
column.setPersistentClass( associatedClass, joins, inheritanceStatePerClass ); column.setJoins( joins ); collection.setCollectionTable( column.getTable() );
column.setPersistentClass( associatedClass, joins, inheritanceStatePerClass ); column.setJoins( joins ); collection.setCollectionTable( column.getTable() );