I've got working my JPA events (postUpdate) and they are triggering correctly when I update a property on my entity except for the ones that are mapped as @ElementCollection.
Is this a restriction? A configuration option?
Here is part of my entity
Code:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class Pckg {
@Id @GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(nullable = false, length = 100)
private String title;
@ElementCollection
@CollectionTable (
name = "PckDest",
joinColumns = @JoinColumn(name = "package_id", nullable = false)
)
@Column(name = "destination", nullable = false, length = 150)
private List<String> destinations;
...
In other words, if I change "title" the change is catched by my listener, but the same does NOT occur when I change "destinations"
I'm using JPA with hibernate (4.0) as provider through spring (3.1)
Thanks in advance