Package org.hibernate.test.instrument.domain

Examples of org.hibernate.test.instrument.domain.OneToOneProxy


  public void execute() {
    Session s = getFactory().openSession();
    Transaction t = s.beginTransaction();
    EntityWithOneToOnes root = new EntityWithOneToOnes( "root" );
    OneToOneProxy oneToOneProxy = new OneToOneProxy( "oneToOneProxy" );
    root.setOneToOneProxy( oneToOneProxy );
    oneToOneProxy.setEntity( root );
    OneToOneNoProxy oneToOneNoProxy = new OneToOneNoProxy( "oneToOneNoProxy" );
    root.setOneToOneNoProxy( oneToOneNoProxy );
    oneToOneNoProxy.setEntity( root );

    s.save( root );
View Full Code Here


  public void execute() {
    Session s = getFactory().openSession();
    Transaction t = s.beginTransaction();
    EntityWithOneToOnes root = new EntityWithOneToOnes( "root" );
    OneToOneProxy oneToOneProxy = new OneToOneProxy( "oneToOneProxy" );
    root.setOneToOneProxy( oneToOneProxy );
    oneToOneProxy.setEntity( root );
    OneToOneNoProxy oneToOneNoProxy = new OneToOneNoProxy( "oneToOneNoProxy" );
    root.setOneToOneNoProxy( oneToOneNoProxy );
    oneToOneNoProxy.setEntity( root );

    s.save( root );
View Full Code Here

TOP

Related Classes of org.hibernate.test.instrument.domain.OneToOneProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.