Здравствуйте, sinnus, Вы писали:
S>Как нет необходимости? А Id у строки где будет храниться?
Так... Неверно выразился — я бы не котел бы делать отдельный класс, String'a вполне хватилобы...хотя попробовал:
@Embedded
private Collection<Image> images;
И соответственно сам Image:
@Embeddable
public class Image implements java.io.Serializable {
И сдесь получаю, мне непонятный, эксепшн:
The Entity class [class hello.Message] has an embedded attribute [images] of type [interface java.util.Collection] which is NOT an Embeddable class. Probable reason: missing @Embeddable or missing <embeddable> in orm.xml if metadata-complete = true