sourceDocument, (SingularAttributeSourceOneToOne) attributeSource, new OneToOne( sourceDocument, component.getTable(), component.getOwner() ), component.getComponentClassName() );
mappingDocument, oneToOneAttributeSource, new OneToOne( mappingDocument, table, entityDescriptor ), entityDescriptor.getClassName() );
public void doSecondPass(Map persistentClasses) throws MappingException { org.hibernate.mapping.OneToOne value = new org.hibernate.mapping.OneToOne( buildingContext, propertyHolder.getTable(),
@Test public void testProperCallbacks() { final MetadataImplementor metadata = (MetadataImplementor) new MetadataSources( serviceRegistry ) .buildMetadata(); final Table tbl = new Table(); final RootClass rootClass = new RootClass( metadataBuildingContext ); ValueVisitor vv = new ValueVisitorValidator(); MetadataBuildingContextTestingImpl metadataBuildingContext = new MetadataBuildingContextTestingImpl(); new Any( metadataBuildingContext, tbl ).accept( vv ); new Array( metadataBuildingContext, rootClass ).accept( vv ); new Bag( metadataBuildingContext, rootClass ).accept( vv ); new Component( metadataBuildingContext, rootClass ).accept( vv ); new DependantValue( metadataBuildingContext, tbl, null ).accept( vv ); new IdentifierBag( metadataBuildingContext, rootClass ).accept( vv ); new List( metadataBuildingContext, rootClass ).accept( vv ); new ManyToOne( metadataBuildingContext, tbl ).accept( vv ); new Map( metadataBuildingContext, rootClass ).accept( vv ); new OneToMany( metadataBuildingContext, rootClass ).accept( vv ); new OneToOne( metadataBuildingContext, tbl, rootClass ).accept( vv ); new PrimitiveArray( metadataBuildingContext, rootClass ).accept( vv ); new Set( metadataBuildingContext, rootClass ).accept( vv ); new SimpleValue( metadataBuildingContext ).accept( vv ); }
public void doSecondPass(Map persistentClasses) throws MappingException { org.hibernate.mapping.OneToOne value = new org.hibernate.mapping.OneToOne( propertyHolder.getTable(), propertyHolder.getPersistentClass() );
OneToOne oneToOne = new OneToOne( table, persistentClass ); bindOneToOne( subnode, oneToOne, true, mappings ); value = oneToOne;
value = new OneToOne( mappings, table, persistentClass ); bindOneToOne( subnode, (OneToOne) value, propertyName, true, mappings );
value = new OneToOne(mappings, table, persistentClass); bindOneToOne((org.grails.datastore.mapping.model.types.OneToOne) currentGrailsProp, (OneToOne) value, path, sessionFactoryBeanName);
value = new OneToOne( mappings, table, persistentClass ); bindOneToOne( subnode, (OneToOne) value, propertyName, true, mappings );
value = new OneToOne( component.getTable(), component.getOwner() ); bindOneToOne( subnode, (OneToOne) value, isNullable, mappings );
value = new OneToOne( mappings, component.getTable(), component.getOwner() ); String relativePath; if (isEmbedded) {
sourceDocument, (SingularAttributeSourceOneToOne) attributeSource, new OneToOne( sourceDocument, component.getMappedTable(), component.getOwner() ), component.getEmbeddableClassName() );
value = new OneToOne(mappings, table, persistentClass); bindOneToOne(currentGrailsProp, (OneToOne) value, path, sessionFactoryBeanName);
value = new OneToOne(mappings, table, persistentClass); bindOneToOne((org.grails.datastore.mapping.model.types.OneToOne) currentGrailsProp, (OneToOne) value, EMPTY_PATH, sessionFactoryBeanName); value = new OneToOne(mappings, table, persistentClass); bindOneToOne((org.grails.datastore.mapping.model.types.OneToOne) currentGrailsProp, (OneToOne) value, EMPTY_PATH, sessionFactoryBeanName);
private Property bindOneToOne(PersistentClass rc, Table targetTable, ForeignKey fk, Set<Column> processedColumns, boolean constrained, boolean inverseProperty) { OneToOne value = new OneToOne((MetadataImplementor)metadata, targetTable, rc); value.setReferencedEntityName(revengStrategy .tableToClassName(TableIdentifier.create(targetTable)));
private Property bindOneToOne(PersistentClass rc, Table targetTable, ForeignKey fk, Set<Column> processedColumns, boolean constrained, boolean inverseProperty) { OneToOne value = new OneToOne(mdbc, targetTable, rc); value.setReferencedEntityName(revengStrategy .tableToClassName(TableIdentifier.create(targetTable)));
final OneToOne oneToOneValue = new OneToOne( mappingDocument, entityDescriptor.getMappedTable(),
public void doSecondPass(Map persistentClasses) throws MappingException { org.hibernate.mapping.OneToOne value = new org.hibernate.mapping.OneToOne( mappings, propertyHolder.getTable(), propertyHolder.getPersistentClass() );
public void doSecondPass(Map persistentClasses) throws MappingException { org.hibernate.mapping.OneToOne value = new org.hibernate.mapping.OneToOne( mappings, propertyHolder.getTable(), propertyHolder.getPersistentClass() );