definitionBuilder.addParam( org.hibernate.id.enhanced.TableGenerator.CONFIG_PREFER_SEGMENT_PER_ENTITY, "true" ); if ( !BinderHelper.isEmptyAnnotationValue( tableGeneratorAnnotation.catalog() ) ) { definitionBuilder.addParam( PersistentIdentifierGenerator.CATALOG, tableGeneratorAnnotation.catalog() );
/** * INTERNAL: * WIP - need to take into consideration the global catalog from XML. */ public String getCatalog() { return m_tableGenerator.catalog(); }
idGen.addParam( org.hibernate.id.enhanced.TableGenerator.CONFIG_PREFER_SEGMENT_PER_ENTITY, "true" ); if ( !BinderHelper.isDefault( tabGen.catalog() ) ) { idGen.addParam( org.hibernate.id.enhanced.TableGenerator.CATALOG, tabGen.catalog() ); idGen.addParam( MultipleHiLoPerTableGenerator.ID_TABLE, tabGen.table() ); if ( !BinderHelper.isDefault( tabGen.catalog() ) ) { idGen.addParam( MultipleHiLoPerTableGenerator.CATALOG, tabGen.catalog() );
/** * 採番テーブルのカタログ名を返します。 * * @return 採番テーブルのカタログ名 */ protected String getCatalog() { final String catalog = tableGenerator.catalog(); if (!StringUtil.isEmpty(catalog)) { return catalog; } return entityMeta.getTableMeta().getCatalog(); }
/** * 採番テーブルのカタログ名を返します。 * * @return 採番テーブルのカタログ名 */ protected String getCatalog() { final String catalog = tableGenerator.catalog(); if (!StringUtil.isEmpty(catalog)) { return catalog; } return entityMeta.getTableMeta().getCatalog(); }
idProperties.setProperty("catalog", pst.catalog()) ; idProperties.setProperty("schema", pst.schema()) ; idProperties.setProperty(TableMultiIdGenerator.TABLE, pst.table()) ;
/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public TableGeneratorMetadataImpl(AbstractLocator locator, TableGenerator annotation) { this.locator = locator; this.catalog = annotation.catalog(); this.schema = annotation.schema(); this.table = annotation.table(); this.name = annotation.name(); this.pkColumnName = annotation.pkColumnName(); this.pkColumnValue = annotation.pkColumnValue(); this.valueColumnName = annotation.valueColumnName(); this.initialValue = annotation.initialValue(); this.allocationSize = annotation.allocationSize(); for (final UniqueConstraint constraint : annotation.uniqueConstraints()) { this.uniqueConstraints.add(new UniqueConstraintMetadataImpl(locator, constraint)); } }
/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public TableGeneratorMetadataImpl(AbstractLocator locator, TableGenerator annotation) { this.locator = locator; this.catalog = annotation.catalog(); this.schema = annotation.schema(); this.table = annotation.table(); this.name = annotation.name(); this.pkColumnName = annotation.pkColumnName(); this.pkColumnValue = annotation.pkColumnValue(); this.valueColumnName = annotation.valueColumnName(); this.initialValue = annotation.initialValue(); this.allocationSize = annotation.allocationSize(); for (final UniqueConstraint constraint : annotation.uniqueConstraints()) { this.uniqueConstraints.add(new UniqueConstraintMetadataImpl(locator, constraint)); } }
/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public TableGeneratorMetadataImpl(AbstractLocator locator, TableGenerator annotation) { this.locator = locator; this.catalog = annotation.catalog(); this.schema = annotation.schema(); this.table = annotation.table(); this.name = annotation.name(); this.pkColumnName = annotation.pkColumnName(); this.pkColumnValue = annotation.pkColumnValue(); this.valueColumnName = annotation.valueColumnName(); this.initialValue = annotation.initialValue(); this.allocationSize = annotation.allocationSize(); for (final UniqueConstraint constraint : annotation.uniqueConstraints()) { this.uniqueConstraints.add(new UniqueConstraintMetadataImpl(locator, constraint)); } }
definitionBuilder.addParam( org.hibernate.id.enhanced.TableGenerator.CONFIG_PREFER_SEGMENT_PER_ENTITY, "true" ); if ( !BinderHelper.isEmptyAnnotationValue( tableGeneratorAnnotation.catalog() ) ) { definitionBuilder.addParam( PersistentIdentifierGenerator.CATALOG, tableGeneratorAnnotation.catalog() );
idGen.addParam( org.hibernate.id.enhanced.TableGenerator.CONFIG_PREFER_SEGMENT_PER_ENTITY, "true" ); if ( !BinderHelper.isEmptyAnnotationValue( tabGen.catalog() ) ) { idGen.addParam( PersistentIdentifierGenerator.CATALOG, tabGen.catalog() ); idGen.addParam( MultipleHiLoPerTableGenerator.ID_TABLE, tabGen.table() ); if ( !BinderHelper.isEmptyAnnotationValue( tabGen.catalog() ) ) { idGen.addParam( PersistentIdentifierGenerator.CATALOG, tabGen.catalog() );
idGen.addParam( org.hibernate.id.enhanced.TableGenerator.CONFIG_PREFER_SEGMENT_PER_ENTITY, "true" ); if ( !BinderHelper.isEmptyAnnotationValue( tabGen.catalog() ) ) { idGen.addParam( PersistentIdentifierGenerator.CATALOG, tabGen.catalog() ); idGen.addParam( MultipleHiLoPerTableGenerator.ID_TABLE, tabGen.table() ); if ( !BinderHelper.isEmptyAnnotationValue( tabGen.catalog() ) ) { idGen.addParam( PersistentIdentifierGenerator.CATALOG, tabGen.catalog() );