use of com.google.inject.persist.Transactional in project che by eclipse.
the class JpaSshDao method get.
@Override
@Transactional
public List<SshPairImpl> get(String owner, String service) throws ServerException {
requireNonNull(owner);
requireNonNull(service);
try {
return managerProvider.get().createNamedQuery("SshKeyPair.getByOwnerAndService", SshPairImpl.class).setParameter("owner", owner).setParameter("service", service).getResultList();
} catch (RuntimeException e) {
throw new ServerException(e.getLocalizedMessage(), e);
}
}
Aggregations