code: public Transaction findByTransactionId(String transactionId) {
          EntityManager entityManager = getEntityManager();
          try {
              return entityManager.createQuery("SELECT t FROM io.motown.operatorapi.viewmodel.persistence.entities.Transaction AS t WHERE t.transactionId = :transactionId", Transaction.class)
                      .setParameter("transactionId", transactionId)
                      .getSingleResult();
          } finally {
              entityManager.close();
          }
      }
docs: Find transactions by transaction id (not the auto-increment transaction.id)