EntityResolver serverResover = serverContext.getEntityResolver();
EntityResolver clientResolver = serverResover.getClientEntityResolver();
ObjectDetachOperation op = new ObjectDetachOperation(clientResolver);
ObjectId oid = new ObjectId("MtTable1", MtTable1.TABLE1_ID_PK_COLUMN, 456);
MtTable1 so = new MtTable1();
so.setObjectId(oid);
so.setGlobalAttribute1("gx");
so.setPersistenceState(PersistenceState.COMMITTED);
so.setObjectContext(serverContext);
serverContext.getGraphManager().registerNode(oid, so);
Object detached = op.detach(
so,
serverResover.getClassDescriptor("MtTable1"),