// associations, so we have to manually supply the correct information here.
streams.registerAssociationAttribute(Lineorder.class.getMethod("getItem"), "item", false);
streams.registerAssociationAttribute(Lineorder.class.getMethod("getSale"), "sale", false);
// Configure Jinq to output the queries it executes
streams.setHint("queryLogger", new JPAQueryLogger() {
@Override public void logQuery(String query, Map<Integer, Object> positionParameters,
Map<String, Object> namedParameters)
{
System.out.println(" " + query);
}