Design Pattern for extensible entity -


i developing application hotel reservation have model called "hotel" has name, description, rate, @ moment want design in way able plugin more simple , complex properties model example address, amenities,

or user model , right have name , lastname user , password , want able add other properties in plugable way .

is there pattern ? builder pattern / observer pattern?

take @ martin fowler's description of dynamic properties (pdf) , user defined fields. can use simple hash table (aka dictionary) hold dynamic properties, depending on language (and implementation) "class schema" won't clear.


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -