4 Replies Latest reply on Oct 25, 2007 12:47 PM by Miguel Angel Goicochea

    Is it possible to have two datamodels on the same class?

    Miguel Angel Goicochea Newbie

      I have a page where I have to display two different tables. One has to have the Main Customers and the Other the affiliates of the customers. Both are saved under the customer table on the database and are linked by a field called "main_customer_id", if it is the same than "customer_id" it is a Main Customer, otherwise it's an affiliate.

      So can I have two @DataModel annotations on the same manager class and two @DataModelSelection or I would have to create a manager class for each table?