Examples of ChildEntity


Examples of org.hibernate.test.event.collection.ChildEntity

  public Collection createCollection() {
    return new ArrayList();
  }

  public Child createChild(String name) {
    return new ChildEntity( name );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.ChildEntity

  public Collection createCollection() {
    return new ArrayList();
  }

  public Child createChild(String name) {
    return new ChildEntity( name );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.ChildEntity

  }

  public void testDeleteParentButNotChild() {
    CollectionListeners listeners = new CollectionListeners( getSessions() );
    ParentWithCollection parent = createParentWithOneChild( "parent", "child" );
    ChildEntity child = ( ChildEntity ) parent.getChildren().iterator().next();
    listeners.clear();
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    parent = ( ParentWithCollection ) s.get( parent.getClass(), parent.getId() );
    child = ( ChildEntity ) s.get( child.getClass(), child.getId() );
    parent.removeChild( child );
    s.delete( parent );
    tx.commit();
    s.close();
    int index = 0;
View Full Code Here

Examples of org.hibernate.test.event.collection.ChildEntity

  public ParentWithCollectionOfEntities(String name) {
    super( name );
  }

  public Child createChild(String name) {
    return new ChildEntity( name );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.ChildEntity

  public Collection createCollection() {
    return new ArrayList();
  }

  public Child createChild(String name) {
    return new ChildEntity( name );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.ChildEntity

  public Collection createCollection() {
    return new ArrayList();
  }

  public Child createChild(String name) {
    return new ChildEntity( name );
  }
View Full Code Here

Examples of org.springframework.data.elasticsearch.entities.ParentEntity.ChildEntity

    return parent;
  }

  private ChildEntity index(String childId, String parentId, String name) {
    ChildEntity child = new ChildEntity(childId, parentId, name);
    IndexQuery index = new IndexQuery();
    index.setId(child.getId());
    index.setObject(child);
    index.setParentId(child.getParentId());
    elasticsearchTemplate.index(index);

    return child;
  }
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.