if (embed.getType() != cls.getDescribedType()
|| embed.getFieldMapping().getStrategy()
== NoneFieldStrategy.getInstance())
return NoneClassStrategy.getInstance();
if (embed.getTypeCode() == JavaTypes.OID)
return new ObjectIdClassStrategy();
return new EmbeddedClassStrategy();
}
if (cls.isEmbeddedOnly())
return NoneClassStrategy.getInstance();