1 Reply Latest reply on Jun 16, 2009 9:02 AM by Wolfgang Knauf

    JPA query question!

    Eric Chow Apprentice


      How can I define a QL for getting Entity from Collections?

      class User {

      List addresses;

      class Address {
      protected String state;

      how can I retrieve all the User if the user's state is 'MA' or 'NY'?

      how can I define the NamedQuery for that?

      Best regards,