0 Replies Latest reply on May 1, 2011 9:52 PM by javatwo

    How to let user add properties to class

    javatwo

      We have a jsf web application using Hibernate running on JBoss. We have a class Product that defines name, model, and price.

       

      public class Product {

      name,

      model,

      price

      }

       

      Product can be clothes, car, computer, etc. How to let users define their own properties? Take computer for instance, user can add: cpu, memory size, etc.

       

      The properties added by users should be able to be a query criterion.

       

      Thanks for help and ideas.

      Dave