Results 1 to 2 of 2

Thread: MongoDB disable validation via JavaConfig

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Default MongoDB disable validation via JavaConfig

    Hi!

    Disabling validation for MongoDB via XML is done this way:
    Code:
    <mongo:mapping-converter disable-validation="true" />
    How could the same be done in JavaConfig?

    Unfortunately, I was unable to find any documentation regarding this issue.
    Also, I did not find anything in the forums.

    Thanks in advance!

    Best
    Martin

  2. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    492

    Default

    You don't need to do it as by default in JavaConfig, no validation is activated. If you want to enable it use a LocalValidatorFactoryBean and create a ValidatingMongoEventListener with that just set up Validator instance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •