podam
podam copied to clipboard
Attribute with @Size(max = number) is not being considered
Sorry for my probally ignorance. But I have the follow class in my project:
class A {
@Size(max = 4)
String s;
get set...
}
and
PodamFactory podam = new PodamFactoryImpl();
A test = podam.manufacturePojo(A.class);
The attribute s of the test variable was filled with a string of size 10.
What is possibly wrong?
Hi,
What is @Size annotation class name?
BR, Daniil
Sorry for my bad... I was using 5.3.2 version. When i updated to 7.0.5 works beautiful.
Ok, good that the problem solved.