Skip to content
Snippets Groups Projects
Commit 62108ade authored by Julian Horner's avatar Julian Horner
Browse files

Replace OGMSession with Session

parent edf875f8
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import org.hibernate.ogm.OgmSession;
import org.hibernate.Session;
import de.dpunkt.myaktion.model.Campaign;
import de.dpunkt.myaktion.model.Organizer;
......@@ -99,7 +99,7 @@ public class CampaignServiceBean implements CampaignService {
// ----------------------------------------------------------------------------------------------
private Double getAmountDonatedSoFar(Campaign campaign) {
OgmSession session = entityManager.unwrap(OgmSession.class);
Session session = entityManager.unwrap(Session.class);
Double result = session.createNamedQuery(Campaign.getAmountDonatedSoFar, Double.class)
.setParameter("campaign", campaign).uniqueResult();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment