Hi All, Just having a bit of an issue with the homework for this one on doing the first point: Find all products whose supplier is SamSung and whose price is under $1000using Criteria API with restrictions
I am getting stuck with getting only Products where the Supplier is SamSung. I would have thought the following code would work but it does not: Criteria crit = session.createCriteria(Product.class); crit.add(Restrictions.eq("supplier", 1)); crit.add(Restrictions.lt("price", new Double(1000.0))); Any help is appreciated. Thanks Warren --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---