【发布时间】:2016-05-13 10:36:30
【问题描述】:
我在 JPA 中有一个 @Entity,它的 @ElementCollection 是这样的:
@ElementCollection(fetch=FetchType.EAGER)
List<String> photodescription = new ArrayList<>();
问题在于,默认情况下,任何photodescription 的列都是VARCHAR(255)。
我需要将其增加到 10000。
对于@ElementCollection 中的元素是否存在任何注释以设置最大大小,例如用于简单字符串的@Size(max=1000)?
【问题讨论】:
标签: java mysql hibernate jpa h2