podam icon indicating copy to clipboard operation
podam copied to clipboard

Attribute with @Size(max = number) is not being considered

Open hfcipriano opened this issue 9 years ago • 3 comments

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?

hfcipriano avatar Jul 05 '17 19:07 hfcipriano

Hi,

What is @Size annotation class name?

BR, Daniil

daivanov avatar Jul 05 '17 19:07 daivanov

Sorry for my bad... I was using 5.3.2 version. When i updated to 7.0.5 works beautiful.

hfcipriano avatar Jul 05 '17 19:07 hfcipriano

Ok, good that the problem solved.

daivanov avatar Jul 05 '17 19:07 daivanov