I have the following entity:
@Entity(name = "product")
public class Product extends BaseProduct {
@ElementCollection(targetClass = LocalizedValue.class)
@CollectionTable(name = "product_description_lv", joinColumns = @JoinColumn(name = "product_id"), indexes = {
@Index(name = "idx_" + "product_description_lv", columnList = "product_id") }, foreignKey = @ForeignKey(name = "fk_"
+ "product_description_lv"))
@MapKeyColumn(name = "locale")
private Map<Locale, LocalizedValue> description;
where the LocalizedValue is the following Embeddable:
@Embeddable
@Access(AccessType.FIELD)
public class LocalizedValue {
@Lob
@Column(length = 50000, name = "val")
private String value;
When I change a simple property on the Product and merge it, then the JPA event listeners are called. However when I change the description and merge it, my JPA entity event listener is never called. I will attach a failing test-case soon. |