Skip to main content

Validation flexibility

No replies
jordihs
Offline
Joined: 2004-05-20

Thisi is a question-suggestion based on a quick look at the APIs, so forgive me if it is nonsense... Will it be possible to create different validation contexts for the same mapping? Sometimes there are constraints which don't map directly to database schema, such as 'field A is mandatory whenever field B has a value of 'X'.
Also, I recently found myself using a textfield with a combobox by it's side which would determine what the data being input in the textfield was.
That changed the way the field is validated, so if JDNC had something like named validation contexts that you could set programatically you would have the flexibility to do all those things easily.
Thanks a lot!