[jboss-user] [JBoss Seam] - Newbie: Persistence and SQL-Statements under Seam

richard_lavoie do-not-reply at jboss.com
Mon Nov 26 06:57:43 EST 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107704#4107704

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107704



More information about the jboss-user mailing list