table = mappings.addTable( schema, catalog,
mappings.getCatalogName() : catalogNode.getValue(); Table table = mappings.addTable( schema, catalog,
table = mappings.addTable( schema, catalog,
mappings.getCatalogName() : catalogNode.getValue(); Table table = mappings.addTable( schema, catalog,
table = mappings.addTable( schema, catalog,
String catalog = catalogNode == null ? mappings.getCatalogName() : catalogNode.getValue(); Table table = mappings.addTable( schema, catalog,
table = mappings.addTable( schema, catalog,
mappings.getCatalogName() : catalogNode.getValue(); Table table = mappings.addTable( schema, catalog,
Table tab = mappings.addTable(quoteIdentifier(aTable.getSchemaName()), null, quoteIdentifier(aTable.getTableName()), null, false);
Table mytable = mappings.addTable( mappings.getSchemaName(), mappings.getCatalogName(), getJoinedSubClassTableName(sub, joinedSubclass, null, mappings, sessionFactoryBeanName),
Table tab = mappings.addTable(quoteIdentifier(aTable.getSchemaName()), null, quoteIdentifier(aTable.getTableName()), null, false);
Table mytable = mappings.addTable( mappings.getSchemaName(), mappings.getCatalogName(), getJoinedSubClassTableName(sub, joinedSubclass, null, mappings, sessionFactoryBeanName),
String catalog = catalogNode == null ? mappings.getCatalogName() : catalogNode.getValue(); Table mytable = mappings.addTable( schema, catalog,
mappings.getCatalogName() : catalogNode.getValue(); Table mytable = mappings.addTable( schema, catalog,
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)); }
mappings.getCatalogName() : catalogNode.getValue(); Table mytable = mappings.addTable( schema, catalog,
mappings.getCatalogName() : catalogNode.getValue(); Table mytable = mappings.addTable( schema, catalog,
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)); }
Table table = mappings.addTable(schema, catalog, getTableName(domainClass, sessionFactoryBeanName), null, false);
Table table = mappings.addTable(schema, catalog, getTableName(domainClass, sessionFactoryBeanName), null, isAbstract);