// I think we should assume the users know what they are are doing
// in this case (that is, if they opt to share an embeddable).
if (! accessor.hasAccess()) {
// We inherited our access from our owning entity.
if (! accessor.getDescriptor().getDefaultAccess().equals(getOwningDescriptor().getDefaultAccess())) {
throw ValidationException.conflictingAccessTypeForEmbeddable(accessor.getJavaClass(), accessor.usesPropertyAccess(), getOwningDescriptor().getJavaClass(), getOwningDescriptor().getClassAccessor().usesPropertyAccess());
}
}
} else {
// Need to set the owning descriptor on the embeddable class before
// we proceed any further in the processing.