clusterDAO.createConfig(configEntity);
Collection<ClusterConfigMappingEntity> entities =
clusterEntity.getConfigMappingEntities();
ClusterConfigMappingEntity clusterConfigMappingEntity =
new ClusterConfigMappingEntity();
clusterConfigMappingEntity.setClusterEntity(clusterEntity);
clusterConfigMappingEntity.setClusterId(clusterId);
clusterConfigMappingEntity.setType(configType);
clusterConfigMappingEntity.setCreateTimestamp(
Long.valueOf(System.currentTimeMillis()));
clusterConfigMappingEntity.setSelected(1);
clusterConfigMappingEntity.setUser(defaultUser);
clusterConfigMappingEntity.setVersion(configEntity.getTag());
entities.add(clusterConfigMappingEntity);
clusterDAO.merge(clusterEntity);
}
}
}