I'm having a bit of a problem, I am trying to gather adresses with the same date from my database.
I have the following code:
try {
String queryString = "SELECT a FROM Adres a JOIN Order o ON a.klantID = o.klantID WHERE o.orderDatum = :orderDatumParam";
Query query = session.createQuery(queryString);
query.setParameter("orderDatumParam", dateTime);
adressen = (ArrayList<Adres>) query.getResultList();
}
Now I get the following error:
java.lang.IllegalArgumentException: org.hibernate.query.sqm.InterpretationException: Error interpreting query [SELECT a FROM Adres a JOIN Order o ON a.klantID = o.klantID WHERE o.orderDatum = :orderDatumParam]; this may indicate a semantic (user query) problem or a bug in the parser [SELECT a FROM Adres a JOIN Order o ON a.klantID = o.klantID WHERE o.orderDatum = :orderDatumParam]
I can't figure out for the life of me, how to make this work.

