> Please, let me know what you think of this version :)

What I think?
I think I'm about to re-implement Hibernate!

But I like your ideas, keep going!
So to put it short, the type-mapping configuration options would look like this:

Master data type:
- input: table/column/pk column
- output: generated enum with two value attributes
- applied to: all referencing foreign keys

Vendor-specific enum:
- input: DB-enum type
- output: generated enum with one value attribute
- applied to: all referencing columns

Synthetic enum:
- input: list of literals
- output: generated enum with one value attribute
- applied to: all columns/attributes/parameters matching a regex

Custom enum:
- input: enum type/data type/value attribute accessor
- output: enum type mapper
- applied to: all columns/attributes/parameters matching a regex

Custom type:
- input: custom type/data type/custom type mapper
- output: no specific output
- applied to: all columns/attributes/parameters matching a regex

Sounds nice!

Reply via email to