Код: Выделить всё
@Entity
public class EntityA {
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List name;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List description;
}
Код: Выделить всё
@Entity
public class EntityB {
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List name;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List shortDescription;
}
Код: Выделить всё
@Entity
@Table(name = "i18n")
public class Translation {
private String languageCode;
private String translation;
//private String referenceToEntity
//private String referenceToField
}
Подробнее здесь: https://stackoverflow.com/questions/567 ... -hibernate
Мобильная версия