Examples of cascade()


Examples of javax.persistence.OneToOne.cascade()

          }
        }
        //MapsId means the columns belong to the pk => not null
        final boolean mandatory = !ann.optional() || forcePersist;
        bindOneToOne(
            getCascadeStrategy( ann.cascade(), hibernateCascade, ann.orphanRemoval(), forcePersist),
            joinColumns,
            !mandatory,
            getFetchMode( ann.fetch() ),
            ignoreNotFound, onDeleteCascade,
            ToOneBinder.getTargetEntity( inferredData, mappings ),
View Full Code Here

Examples of org.hibernate.annotations.JoinColumnsOrFormulas.cascade()

        for (Ejb3JoinColumn joinColumn : joinColumns) {
          joinColumn.setSecondaryTableName( join.getTable().getName() );
        }
      }
      bindManyToOne(
          getCascadeStrategy( ann.cascade(), hibernateCascade ),
          joinColumns,
          ann.optional(),
          ignoreNotFound, onDeleteCascade,
          mappings.getReflectionManager().toXClass( ann.targetEntity() ),
          propertyHolder,
View Full Code Here

Examples of test.po.Master.cascade()

  /**
   * 测试多对多更新
   */
  public static void testManyManyUpdate() {
    Master master = new Master().find().first();
    master.cascade().refresh(999, "pets");
  }

  public static void testManyManySelect() {
    // List<Master> masterList = DAOFactory.getSelectDAO().selectAll(
    // Master.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.