130131132133134135136137138139
} map.removeQuery(oldName); map.addQuery(query); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).refreshMappingCache(); } }
149150151152153154155156157158
entity.setName(newName); map.removeObjEntity(oldName, false); map.addObjEntity(entity); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).refreshMappingCache(); } }
174175176177178179180181182183184
if (map != null) { map.removeDbEntity(oldName, false); map.addDbEntity(entity); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).refreshMappingCache(); } } }
133134135136137138139140141142
procedure.setName(newName); map.removeProcedure(oldName); map.addProcedure(procedure); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).clearCache(); } }
153154155156157158159160161162
query.setName(newName); map.removeQuery(oldName); map.addQuery(query); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).clearCache(); } }
172173174175176177178179180181
entity.setName(newName); map.removeObjEntity(oldName, false); map.addObjEntity(entity); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).clearCache(); } }
197198199200201202203204205206207
if (map != null) { map.removeDbEntity(oldName, false); map.addDbEntity(entity); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).clearCache(); } } }
103104105106107108109110111112
} map.removeQuery(oldName); map.addQuery(query); // important - clear parent namespace: MappingNamespace ns = map.getNamespace(); if (ns instanceof EntityResolver) { ((EntityResolver) ns).clearCache(); } }