final ProductConfiguration pc = new ProductConfiguration();
pc.setName("PC1");
server.save(pc);
CalculationResult r = new CalculationResult();
final Double charge = 100.0;
r.setCharge(charge);
r.setProductConfiguration(pc);
r.setGroupConfiguration(null);
server.save(r);
Query<CalculationResult> q = server.createNamedQuery(CalculationResult.class, "loadResult");
q.setParameter("charge", charge);