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

    How to let user add properties to class

    Dave Chen Master

      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 {






      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.