We are working on a model which maintain in a DB a formal description of a content.
So there are, for a certain view, a list of elements of different types (string, memo, integer, etc), representing a form.
We are on early steps, yet, so we are searching for best approaches.
I want to use Hibernate, I did some test and it's incredibly versatile.
But now I'm asking how I could implement custom types.
I.e., initially the framework has basic types, string, memo, integer, float, and I would use the table-per-subclass strategy.
So someone will implement, e.g., the Currency type. A new subclass table should be added to the DB, and a new mapping should be added to the Hibernate model.
Is this possible? That is, could I add new mappings to an existing model, at runtime? Is this a good practice?
Thanks to all
_________________ Pietro Bonanno
|