gbadner/hibernate-core — comment on commit a4778c5157124d3429a3caba3d6cc69797083dc4
File: hibernate-core/src/main/java/org/hibernate/mapping/Property.java line 111
By sebersole:

Minor, but I think handling for should be hoisted back here. It is represented as a component in these classes as a matter of convenience, not because it is really a component. Something like:

if ( type.isComponentType() ) {
return type.isAnyType()
? getCascadeStyle( cascade )
: getCompositeCascadeStyle( (CompositeType) type, cascade );
}

or:

if ( type.isAnyType() ) {
return getCascadeStyle( cascade );
}
else if ( type.isComponentType() ) {
return getCompositeCascadeStyle( (CompositeType) type, cascade );
}