0
@ElementCollection
@CollectionTable(name = "db_foo")
public List<String> foo;

i want to add limitation on foo elements length (something like @Column(length=x)). Is it possible?

sdespolit
  • 893
  • 8
  • 20

1 Answers1

2

Have you tried @Column(length=x)? As far as I understand, it should work in this case as well.

axtavt
  • 239,438
  • 41
  • 511
  • 482