use of com.redhat.cloud.notifications.models.BehaviorGroupActionId in project notifications-backend by RedHatInsights.
the class LifecycleITest method addBehaviorGroupAction.
@Transactional
void addBehaviorGroupAction(UUID behaviorGroupId, UUID endpointId) {
BehaviorGroup behaviorGroup = entityManager.find(BehaviorGroup.class, behaviorGroupId);
Endpoint endpoint = entityManager.find(Endpoint.class, endpointId);
BehaviorGroupAction action = new BehaviorGroupAction();
action.setId(new BehaviorGroupActionId());
action.setBehaviorGroup(behaviorGroup);
action.setEndpoint(endpoint);
entityManager.persist(action);
}
Aggregations