public Table getTable() { return component.getTable(); }
/** * @deprecated User {@link Component#Component(MetadataBuildingContext, Component)} instead. */ @Deprecated public Component(MetadataImplementor metadata, Component component) throws MappingException { this( metadata, component.getTable(), component.getOwner() ); }
public Component(MetadataBuildingContext metadata, Component component) throws MappingException { this( metadata, component.getTable(), component.getOwner() ); }
sourceDocument, (SingularAttributeSourceBasic) attributeSource, new SimpleValue( sourceDocument, component.getTable() ), component.getComponentClassName() ); sourceDocument, (SingularAttributeSourceManyToOne) attributeSource, new ManyToOne( sourceDocument, component.getTable() ), component.getComponentClassName() ); sourceDocument, (SingularAttributeSourceOneToOne) attributeSource, new OneToOne( sourceDocument, component.getTable(), component.getOwner() ), component.getComponentClassName() ); sourceDocument, (SingularAttributeSourceAny) attributeSource, new Any( sourceDocument, component.getTable() ), component.getComponentClassName() );
public void addProperty(Property prop, Ejb3Column[] columns, XClass declaringClass) { //Ejb3Column.checkPropertyConsistency( ); //already called earlier /* * Check table matches between the component and the columns * if not, change the component table if no properties are set * if a property is set already the core cannot support that */ if (columns != null) { Table table = columns[0].getTable(); if ( !table.equals( component.getTable() ) ) { if ( component.getPropertySpan() == 0 ) { component.setTable( table ); } else { throw new AnnotationException( "A component cannot hold properties split into 2 different tables: " + this.getPath() ); } } } addProperty( prop, declaringClass ); }
public Table getTable() { return component.getTable(); }
SimpleValue value = new SimpleValue( buildingContext, component.getTable() ); property.setValue( value ); final SimpleValue referencedValue = (SimpleValue) referencedProperty.getValue();
public void addProperty(Property prop, Ejb3Column[] columns, XClass declaringClass) { //Ejb3Column.checkPropertyConsistency( ); //already called earlier /* * Check table matches between the component and the columns * if not, change the component table if no properties are set * if a property is set already the core cannot support that */ if (columns != null) { Table table = columns[0].getTable(); if ( !table.equals( component.getTable() ) ) { if ( component.getPropertySpan() == 0 ) { component.setTable( table ); } else { throw new AnnotationException( "A component cannot hold properties split into 2 different tables: " + this.getPath() ); } } } addProperty( prop, declaringClass ); }
public Table getTable() { return component.getTable(); }
public Table getTable() { return component.getTable(); }
public Table getTable() { return component.getTable(); }
/** * @deprecated since 6.0, use {@link #getMappedTable()} instead. */ @Deprecated public Table getTable() { return component.getTable(); }
SimpleValue value = new SimpleValue( component.getTable() ); property.setValue( value ); final SimpleValue referencedValue = (SimpleValue) referencedProperty.getValue();
public Component(Mappings mappings, Component component) throws MappingException { super( mappings, component.getTable() ); this.owner = component.getOwner(); }
public Component(Mappings mappings, Component component) throws MappingException { super( mappings, component.getTable() ); this.owner = component.getOwner(); }
public Component(Component component) throws MappingException { super( component.getTable() ); this.owner = component.getOwner(); }
public void addProperty(Property prop, Ejb3Column[] columns) { //Ejb3Column.checkPropertyConsistency( ); //already called earlier /* * Check table matches between the component and the columns * if not, change the component table if no properties are set * if a property is set already the core cannot support that */ Table table = columns[0].getTable(); if ( ! table.equals( component.getTable() ) ) { if ( component.getPropertySpan() == 0 ) { component.setTable( table ); } else { throw new AnnotationException( "A component cannot hold properties split into 2 different tables: " + this.getPath() ); } } addProperty( prop ); }
public void addProperty(Property prop, Ejb3Column[] columns, XClass declaringClass) { //Ejb3Column.checkPropertyConsistency( ); //already called earlier /* * Check table matches between the component and the columns * if not, change the component table if no properties are set * if a property is set already the core cannot support that */ if (columns != null) { Table table = columns[0].getTable(); if ( !table.equals( component.getTable() ) ) { if ( component.getPropertySpan() == 0 ) { component.setTable( table ); } else { throw new AnnotationException( "A component cannot hold properties split into 2 different tables: " + this.getPath() ); } } } addProperty( prop, declaringClass ); }
public void addProperty(Property prop, Ejb3Column[] columns, XClass declaringClass) { //Ejb3Column.checkPropertyConsistency( ); //already called earlier /* * Check table matches between the component and the columns * if not, change the component table if no properties are set * if a property is set already the core cannot support that */ if (columns != null) { Table table = columns[0].getTable(); if ( !table.equals( component.getTable() ) ) { if ( component.getPropertySpan() == 0 ) { component.setTable( table ); } else { throw new AnnotationException( "A component cannot hold properties split into 2 different tables: " + this.getPath() ); } } } addProperty( prop, declaringClass ); }
value = new ManyToOne( component.getTable() ); bindManyToOne( subnode, (ManyToOne) value, propertyName, isNullable, mappings ); value = new OneToOne( component.getTable(), component.getOwner() ); bindOneToOne( subnode, (OneToOne) value, isNullable, mappings ); value = new Any( component.getTable() ); bindAny( subnode, (Any) value, isNullable, mappings ); value = new SimpleValue( component.getTable() ); bindSimpleValue( subnode, (SimpleValue) value, isNullable, propertyName, mappings );