Package gov.nasa.arc.mct.dbpersistence.dao

Examples of gov.nasa.arc.mct.dbpersistence.dao.TagAssociationPK


 
       ComponentSpec mysandboxComponentSpec = new ComponentSpec();
       updateComponentSpec(mysandbox, mysandboxComponentSpec, em, true);
       em.persist(mysandboxComponentSpec);

       TagAssociationPK tagAssociationPK = new TagAssociationPK();
       tagAssociationPK.setComponentId(mysandbox.getComponentId());
       tagAssociationPK.setTagId("bootstrap:creator");
       TagAssociation tagAssociation = new TagAssociation();
       tagAssociation.setTagAssociationPK(tagAssociationPK);
       em.persist(tagAssociation);

       ComponentSpec dropboxComponentSpec = new ComponentSpec();
View Full Code Here


      }

      for (AbstractComponent component:components) {
        ComponentSpec cs = em.find(ComponentSpec.class, component.getComponentId());
        TagAssociation association = new TagAssociation();
        TagAssociationPK tagPK = new TagAssociationPK();
        tagPK.setComponentId(cs.getComponentId());
        tagPK.setTagId(t.getTagId());
        association.setTagAssociationPK(tagPK);
        cs.getTagAssociationCollection().add(association);
      }
     
      em.getTransaction().commit();
View Full Code Here

    cs.setViewStateCollection(viewStates);
   
    cs.setTagAssociationCollection(new ArrayList<TagAssociation>());
    for (Tag aTag:tags) {
      TagAssociation association = new TagAssociation();
      TagAssociationPK tagPK = new TagAssociationPK();
      tagPK.setComponentId(cs.getComponentId());
      tagPK.setTagId(aTag.getTagId());
      association.setTagAssociationPK(tagPK);
      association.setTagProperty(aTag.getTagProperty());
      cs.getTagAssociationCollection().add(association);
    }
   
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.dbpersistence.dao.TagAssociationPK

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.