When I define @Access on the entity class it's inherited by included Embeddable classes. However, if I use @ElementCollection with Embeddable class it's not inheriting @Access:
@Entity
@Access(AccessType.FIELD)
publicclass Entity {
@Embedded
// @Access propagated to here
private Element element;
@ElementCollection
// @Access NOT propagated to here
private Set<Element> elements;
}
@Embeddable
publicclass Element {
}