Hi,
I'm extending the data model of an Java application to include some kind of a setting facility. Settings in this application would basically be Strings or Numbers, no entities or other model objects.
My Question is what's the best way to map this requirement to JPA (Hibernate)?
I first thought about implementing a Setting class with properties for each desired type but maybe there is a way to use something like Hibernate's Any mapping? The Problem with the any mapping seems to be that it is meant to express relations to entities not embeddables.
Any ideas?
edit:
To clarify the requirement. I want to persist variable data in a simple way, think about C style union or a bean property of the Object type.