A
Adam
Hello,
I'm generally new to Java and have a project where I've got a db
schema with normalized reference tables with static/readonly lookup
values.. I've also generated a Bean mapping from the overall schema
and was wondering how to tag(?) or annotate the reference types
(corresponding to the normalized reference/lookup tables) with their
readonly content, for example:
table:
FK_Ref_Table1
"SomeKey", "Value"
"SomeOtherKey", "someOtherValue"
....
And in the mapped bean class
FK_Ref_TableObject.SomeKey
FK_Ref_TableObject.SomeOtherKey
....
where these object.property resolves to the "Value" and
"someOtherValue" ...
What I'd like to avoid is hard-coding the keys into the project but to
be able to reference them as a class; and without having to hard-code
the class... a data access layer might provide inserts, updates, etc.
to the FK reference values which would then reflect in the generated
class, automatically.
Not even sure what to call what I'm talking about.
Thanks for any help.
I'm generally new to Java and have a project where I've got a db
schema with normalized reference tables with static/readonly lookup
values.. I've also generated a Bean mapping from the overall schema
and was wondering how to tag(?) or annotate the reference types
(corresponding to the normalized reference/lookup tables) with their
readonly content, for example:
table:
FK_Ref_Table1
"SomeKey", "Value"
"SomeOtherKey", "someOtherValue"
....
And in the mapped bean class
FK_Ref_TableObject.SomeKey
FK_Ref_TableObject.SomeOtherKey
....
where these object.property resolves to the "Value" and
"someOtherValue" ...
What I'd like to avoid is hard-coding the keys into the project but to
be able to reference them as a class; and without having to hard-code
the class... a data access layer might provide inserts, updates, etc.
to the FK reference values which would then reflect in the generated
class, automatically.
Not even sure what to call what I'm talking about.
Thanks for any help.