Package org.rhq.core.domain.content

Examples of org.rhq.core.domain.content.RepoRepoRelationship


                Repo persistedRepo = repoPageList.get(0);
                Set<RepoRepoRelationship> relationships = persistedRepo.getRepoRepoRelationships();
                assert relationships.size() == 1;

                RepoRepoRelationship relationship = relationships.iterator().next();
                assert relationship.getRepoRepoRelationshipPK().getRepo().getName().equals("repo1");
                assert relationship.getRepoRepoRelationshipPK().getRepoRelationship().getRelatedRepo().getName()
                    .equals("repo2");
                assert relationship.getRepoRepoRelationshipPK().getRepoRelationship().getRepoRelationshipType()
                    .getName().equals(relationshipTypeName);
            }
        });
    }
View Full Code Here


        repoRelationship.addRepo(repo);

        entityManager.persist(repoRelationship);
        relatedRepo.addRepoRelationship(repoRelationship);

        RepoRepoRelationship repoRepoRelationship = new RepoRepoRelationship(repo, repoRelationship);

        entityManager.persist(repoRepoRelationship);
        repo.addRepoRelationship(repoRelationship);
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.content.RepoRepoRelationship

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.