public void testNullCacheEnabled() {
nullTestLogic(true);
}
public void testMappingTransferAndOverride() {
JDBCConfiguration conf = (JDBCConfiguration) emf.getConfiguration();
ClassMapping cls = conf.getMappingRepositoryInstance().getMapping
(EmbedOwner.class, null, true);
assertEquals("OWN_BASIC", cls.getFieldMapping("basic").
getColumns()[0].getName());
ClassMapping embed = cls.getFieldMapping("embed").getEmbeddedMapping();
assertEquals("EMB_BLOB", embed.getFieldMapping("blob").
getColumns()[0].getName());
assertEquals("OVER_BASIC", embed.getFieldMapping("basic").
getColumns()[0].getName());
assertEquals("OVER_OWNER", embed.getFieldMapping("owner").
getColumns()[0].getName());
FieldMapping fm = embed.getFieldMapping("clob");
DBDictionary dict = conf.getDBDictionaryInstance();
if (dict.getPreferredType(Types.CLOB) == Types.CLOB) {
if (dict.maxEmbeddedClobSize > 0)
assertTrue(fm.getStrategy() instanceof
MaxEmbeddedClobFieldStrategy);
else