So, basically, I am trying to implement a simple key-value store for global, system-wide configurations for my application, and for that, I would like to map an entire java.util.Map
to a single table in the database? So, for example:
// initialization
globalConfig.put("property1", "130")
globalConfig.put("property2", "abc")
globalConfig.put("propertyXY", "0")
is mapped to:
GLOBAL_CONFIG:
| key | value |
|------------|-------|
| property1 | 130 |
| property2 | abc |
| propertyXY | 0 |
Is there a clean and simple way to implement this using JPA / Hibernate?