0 Replies Latest reply on Nov 26, 2007 6:57 AM by richard lavoie

    Newbie: Persistence and SQL-Statements under Seam

    richard lavoie Newbie

      Hi there,

      I am new to seam and I am trying to get some examples to work.
      My question is how to tell seam to show specific data like using the where-statement in SQL:

      For example suppose we habe an EntityBean Customer:

      @Entity
      @Name("customer")
      class Customer
      {
      int customerId.
      String name;
      boolean active
      ....
      }

      and in a sessionBean a function showAllCustomers, which shows all customers where the attribut active=true and does'nt show the inactive cases?

      Thanks a lot for your help
      Richard