if ( property.isUpdateable() && generationTiming == GenerationTiming.ALWAYS ) {
if ( singularAttributeSource.isUpdatable() == null ) {
property.setUpdateable( false );
}
else {
throw new MappingException(
String.format(
Locale.ENGLISH,
"Cannot specify both update=\"true\" and generated=\"%s\" for property %s",
generationTiming.name().toLowerCase(Locale.ROOT),
propertySource.getName()
),
mappingDocument.getOrigin()
);
}
}