// (it forces us to use enums not strings, which were deleted)
executeInTransaction(new Runnable() {
@Override
public void run() {
EntityManager em = getEntityManagerProvider().get();
Query nativeQuery = em.createNativeQuery("UPDATE hostcomponentstate SET current_state=?1 WHERE current_state in (?2, ?3)");
nativeQuery.setParameter(1, "INSTALLED");
nativeQuery.setParameter(2, "STOP_FAILED");
nativeQuery.setParameter(3, "START_FAILED");
nativeQuery.executeUpdate();
}