Examples of RackEntity


Examples of com.vmware.bdd.entity.RackEntity

public class RackDAO extends BaseDAO<RackEntity> implements IRackDAO {

   @Override
   @Transactional
   public RackEntity addRack(String name, List<String> hosts) {
      RackEntity entity = new RackEntity(name);
      for (String host : hosts) {
         PhysicalHostEntity hostEntity = new PhysicalHostEntity(host);
         hostEntity.setRack(entity);
         entity.getHosts().add(hostEntity);
      }
      insert(entity);
      return entity;
   }
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.