Skip to content

Commit 0fcda14

Browse files
committed
docs: add @column example
Refs: JF-61
1 parent 20f6432 commit 0fcda14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ String result = fixture.create(String.class);
4646
String: "c3932f6f-59ae-43df-8ee9-8788474a3f87"
4747

4848
#### Note
49-
If a `String`-field is annotated with `@Size`, those limits will be respected:
49+
If a `String`-field is annotated with `@Size` or `@Column`, those limits will be respected:
5050
```java
5151
public class TestObjectWithJavaxValidationAnnotations {
5252
@Size(min = 3, max = 6)
5353
private String withMinMaxAnnotation;
54+
55+
@Column(length = 6)
56+
private String withColumnLengthAnnotation;
5457
}
5558
```
5659

0 commit comments

Comments
 (0)