Skip to main content
Filter by
Sorted by
Tagged with
3 votes
0 answers
297 views

I have validations in my application which are built based on spring validation annotations like NotNull, NotEmpty. public class AccountCreateRequest { @NotNull private String accountName; ...
sabu's user avatar
  • 2,107
2 votes
1 answer
1k views

I've a Spring Boot 2.4.2 REST application using JPA, Hibernate, etc. So far I use a MessageSource for applications errors (located in i18n/messages), and the default ValidationMessagesfor bean ...
drenda's user avatar
  • 6,284
0 votes
2 answers
973 views

I have created a spring boot application (user spring-boot-starter-parent V. 2.2.2.RELEASE) with Rest controllers, that work fine, now I have added a dependency to : <dependency> &...
maslan's user avatar
  • 2,207
0 votes
0 answers
187 views

I am facing an issue with my "User" Object being Validated before being registered into a database Used Technologies : - Spring Web MVC with Hibernate Validator - Spring Data (JDBC) - Maven Here ...
Nhla Adel's user avatar
2 votes
0 answers
402 views

I have below java external class which is coming from third party jar and I want to do the bean validation against this class. Product.java: private String id; private Price price Price.java ...
Digital's user avatar
  • 591
1 vote
1 answer
1k views

I'm trying to add a Validation to my form using Hibernate Validator to my project. On submitting the page below is the error message being displayed. But when I remove @Valid annotation from my ...
Nagaraj's user avatar
  • 78
0 votes
1 answer
4k views

I am getting following validation exception. I explored some of the answers earlier on same question but nothing worked for me. org.springframework.web.util.NestedServletException: Request ...
Rakesh Goswami's user avatar
1 vote
1 answer
2k views

I am doing a spring boot rest application with a custom exception mapping. The exception mapping is irrelevant, but I wanted to use hibernate validator in version 4 ((because I have to use java ...
maslan's user avatar
  • 2,207
0 votes
1 answer
1k views

I am having below configuration for a RestEasy Rest WS jaxrs-api-2.3.5.Final.jar, resteasy-jaxrs-2.3.5.Final.jar, resteasy-hibernatevalidator-provider-2.3.5.Final.jar, hibernate-validator-4.3.2....
Somnath Goswami's user avatar
2 votes
1 answer
820 views

In my Java EE 7 OpenShift project I'm using javaee-api version 7.0. For my model I added the depency validation-api version 1.1.0, but that wasn't enough. Then I tried with <dependency> <...
Martin's user avatar
  • 239
2 votes
1 answer
358 views

There's a bean validation in a project's jar which validation.xml contains field-level validation of Address bean. The other project uses Address class and needs to have specific Address validation. ...
Dragon's user avatar
  • 2,481
1 vote
1 answer
658 views

I have upgraded my software from NHibernate v2.1.2.4000 (which was compatible with NHibernate.Validator v1.2.3001) to NHibernate v4.0.2.4000. Now I am trying to use NHibernate.Validator v1.3.2.4000, ...
Rene's user avatar
  • 556
2 votes
1 answer
616 views

Apart from using class-level validations, is there a way to access the parent bean of a field-level validation annotation from within its validator class? For example: public class CustomValidator ...
Behrang Saeedzadeh's user avatar
0 votes
1 answer
253 views

I am working on some old project which is working with some old NHibernate.Validator. I got a exception when I build it which says The type or namespace name 'NHVConfiguration' could not be found. ...
Joe.wang's user avatar
  • 11.9k
0 votes
1 answer
2k views

I want to use Hibernate Validator, In first step I checked and studied the following reference : Hibernate Validator JSR 349 Reference Implementation Reference Guide 5.0.2.Final first sample in page 3 ...
HamedFathi's user avatar
  • 4,212
5 votes
2 answers
625 views

We're looking at upgrading a large-scale project currently implemented using ASP.NET MVC 2 with xVal providing the glue between NHibernate Validator and client-side validation. When I was looking for ...
DanP's user avatar
  • 6,518
0 votes
1 answer
52 views

When I have log4net set to DEBUG in a project with an NHibValidator dependency, I lots of feedback from NHibValidator. When the Validator is not the focus of the debug run however, this is just noise. ...
Berryl's user avatar
  • 12.9k
2 votes
2 answers
259 views

I am trying to use both nhibernate validator and nhibernate envers together in the same project.... but i am getting the null expection: If i iniitliaze the validator later, i get the error: Mesage: ...
user avatar
1 vote
1 answer
345 views

I am generating schema using nhibnernate, but its not generating it is not considering the constraints: public class Person { public virtual int Id { get; set; } [NotNull] ...
user avatar
0 votes
1 answer
2k views

I'm using Hibernate validator 4.3. I try validate given entity: @Entity @Table(name = "standard_group") public class StandardGroup extends AbstractEntity { private static final long ...
Peter Jurkovic's user avatar
2 votes
0 answers
2k views

my custom class is implemented via: @RequiredIfSet.List({ @RequiredIfSet(field = "isFillingOutForSomeoneElse", dependentField = "reporterName", message = "may not be null"), }) When I loop ...
williamsandonz's user avatar
2 votes
1 answer
175 views

I have NHibernate working opening sessions etc. I just want to initialise a new Validator engine (have put validator DLLS in my project from NHibernate validator 1.31GA) and my DLLS for NHibernate are ...
williamsandonz's user avatar
0 votes
1 answer
151 views

From this discussion I gather that NHibernate Validator runs after the built in validation, meaning my Not Null attributes throw PropertyValueException before NHibernate Validator is even run. Is ...
Jonn's user avatar
  • 4,681
3 votes
1 answer
671 views

We're building a project using NHibernate and Castle with the Validators project. I'm trying to upgrade it to the latest supported version between all of those. I've gotten the application working ...
Vern D.'s user avatar
  • 178
3 votes
1 answer
881 views

I'm using NHibernate.Validator with the Loquacious ValidationDef configuration style. For all my rules I use WithMessage to set a custom message when the value is invalid. The messages are codes that ...
user avatar
0 votes
1 answer
292 views

I created an unit test case for displaying error messages in a different language than English but it doesn't seem to work and I don't know what I am missing. Here are the details: I am using ...
boggy's user avatar
  • 4,077
2 votes
0 answers
88 views

After upgrading from NHibernate 2 to 3.1, NHibernate Validator is throwing and catching tons of MappingExceptions with the message "property not found: myProp on entity MyEntity". The stack trace is: ...
cbp's user avatar
  • 25.7k
6 votes
1 answer
693 views

Has anyone encountered this? After upgrading to NHibernate 3.1, I am receiving the following exception from NHibernate Validator when running NUnit test cases: System.NotSupportedException : The ...
cbp's user avatar
  • 25.7k
2 votes
3 answers
2k views

Is it possible to validate domain model with Nhibernate validation framework in PreTranctionCommint event? If possible how we can write this event ?
viky's user avatar
  • 21
1 vote
2 answers
397 views

I've been using Nhibernate (with fluent nhibernate mapping) in a windows forms application and to do some validation and binding, I've been using NHibernate Validator too and when we try to validate ...
Felipe Oriani's user avatar
0 votes
1 answer
3k views

I am struggling to get Fluent NHibernate and the NHibernate Validator working together and there seems to be a lack of documentation on the internet about the best way to do this. I have found a few ...
Stuart Leyland-Cole's user avatar
5 votes
1 answer
607 views

As of the today, the Nuget release of NHibernate Validator is 1.3.1.4000 and says it has a dependency >= NHibernate 3.1.0.4000, which implies it should work with latest NHib 3.2. But NHib 3.2 now has ...
Berryl's user avatar
  • 12.9k
2 votes
2 answers
579 views

Using Nhibernate Validator (with S#harp Architecture / MVC3), how can I write a custom attribute, preferably not object-specific (since this is a fairly common requirement) that enforces that ...
Carl Bussema's user avatar
  • 1,714
1 vote
1 answer
440 views

Is there any way of speeding up the time NHibernate Validator takes to initialize when the default validator mode is set to ValidatorMode.OverrideAttributeWithExternal? It takes over 11 seconds to ...
Sandor Drieënhuizen's user avatar
3 votes
1 answer
2k views

I'm having some trouble getting NHV to work with Fluent NHibernate. A unit test that I have that has an entity that SHOULD be failing validation ends up throwing an ADO exception. I have NHV ...
Cole W's user avatar
  • 15.4k
0 votes
2 answers
865 views

In my unit tests I am getting an error when I am debugging. The weird thing is I do not get this whenever I just run the test (it's only when debugging a test). I get an exception whenever I try to ...
Cole W's user avatar
  • 15.4k
0 votes
2 answers
345 views

Is there a version that works with Nhibernate 3.1? Currently I have a version that is looking for 2.1.2.4000. Is there something I can change to be able to use the old Nhibernate Validator with the ...
Cole W's user avatar
  • 15.4k
0 votes
2 answers
1k views

I have followed this article and have a passing test showing custom validation error messages being returned from a resource file when a call to Validator.IsValid(someEntity) fails. I am trying to ...
jenson-button-event's user avatar
1 vote
1 answer
2k views

Say I have a value object class, FullName, that is used as a property in an Employee entity class. The FullName may have a middle initial, nick name, etc; but from a domain perspective I would like to ...
Berryl's user avatar
  • 12.9k
3 votes
1 answer
167 views

What do you know about NHibernate validator performance? I plan to use it, but it use reflection and I worry about performance...
Andy's user avatar
  • 764
1 vote
1 answer
397 views

I'm attempting to use the DecimalMin validator from NHibernates Validator library. Unfortunately, due to compiler restrictions I'm getting errors when attempting to utilize it. I'm sure its something ...
Donn Felker's user avatar
  • 9,660
2 votes
1 answer
1k views

There must be a simple solution out there, I'm trying to use NHibernate Validator attributes on my DateTime properties. If the value is null (via [NotNull]), I want it to fail validation. When I ...
chum of chance's user avatar
1 vote
3 answers
470 views

I'm learning to use NHibernate validator and it's Fluent API (Loquacious). I have noticed is that I can't set an integer property or nullable int property (int?) to be not nullable. Well, why not? ...
Ronnie Overby's user avatar
1 vote
1 answer
355 views

i am integrating nhibernate validator into my application and and everything is fine with attributes but as soon as I create *.nhv.xml files and move my validation rules there (as embedded resource) ...
bidel's user avatar
  • 31
0 votes
1 answer
2k views

I'm working with a test project based on WhoCanHelpMe, which is based on Sharp Architecture, NHibernateValidator, etc. As its written the when_the_profile_tasks_is_asked_to_create_a_profile unit test ...
tlum's user avatar
  • 933
2 votes
2 answers
1k views

I'm trying to integrate NHibernate.Validator with ASP.NET MVC client side validations, and the only problem I found is that I simply can't convert the non-interpolated message to a human-readable one. ...
SztupY's user avatar
  • 10.6k
5 votes
3 answers
421 views

We have a project using FluentNibernate to map the entities. Now I need to add some format validation to these maps. For Nullable, Length and such we are currently using the mappings. I added ...
Thad's user avatar
  • 1,530
2 votes
2 answers
572 views

I'm using Nhibernate and I have a requirement that the validation rules must change in time. The framework I'll use is NHibernate validator, but I don't really know how to make dynamic rules, the ...
Argons's user avatar
  • 445
1 vote
1 answer
485 views

I am using xVal with NHibernate Validator and I have a hard time to validate the dates. First, NHibernate does not have validation for Date/DateTime formatting (except Past and Future). Second, I ...
Amin Emami's user avatar
2 votes
1 answer
483 views

I just configured my NHibValidator. My NHibernate creates the DB schema. When I set MaxLenght="20" to some property of a class then in the database the length appears in the database column. I am ...
mynkow's user avatar
  • 4,608