Uploaded image for project: 'Hibernate Validator'
  1. Hibernate Validator
  2. HV-653

Offer a way to validate class-level constraints before properties have been written to a model

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.x
    • Component/s: engine
    • Labels:
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      For UI-centric use cases (e.g. JavaFX) it would be very beneficial to have a method similar to validateValue() which works for multiple properties. This would allow to validate class-level constraints before the concerned property values have been written to the model actually.

      It would require some sort of proxying technique to obtain the values given via this method from there any any others from the underlying model. This should be doable for properties accessed via getters, for field access it may be more difficult.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              hardy.ferentschik Hardy Ferentschik added a comment -

              Is this in active progress atm? Seems I cannot change its state.

              Show
              hardy.ferentschik Hardy Ferentschik added a comment - Is this in active progress atm? Seems I cannot change its state.
              Hide
              gunnar.morling Gunnar Morling added a comment -

              Re-set it to state open. The first issue is basically addressed now by HV-819.

              Show
              gunnar.morling Gunnar Morling added a comment - Re-set it to state open. The first issue is basically addressed now by HV-819 .

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Development