use of com.redhat.cloud.notifications.models.EventTypeBehaviorId in project notifications-backend by RedHatInsights.
the class LifecycleITest method addEventTypeBehavior.
@Transactional
void addEventTypeBehavior(UUID eventTypeId, UUID behaviorGroupId) {
EventType eventType = entityManager.find(EventType.class, eventTypeId);
BehaviorGroup behaviorGroup = entityManager.find(BehaviorGroup.class, behaviorGroupId);
EventTypeBehavior behavior = new EventTypeBehavior();
behavior.setId(new EventTypeBehaviorId());
behavior.setEventType(eventType);
behavior.setBehaviorGroup(behaviorGroup);
entityManager.persist(behavior);
}
Aggregations