/** * creates a nested node with the given name. Also the nested node's parent pointer will be set * appropriatly. * @param nodeName may be null. */ public NodeImpl createNode(String nodeName) { NodeImpl node = new NodeImpl(); node.setName(nodeName); addNode(node); return node; }
public Object deepCopy(Object object) throws HibernateException { if (object==null) { return null; } ExecutionImpl original = (ExecutionImpl) object; NodeImpl node = new NodeImpl(); node.setName(original.getNode().getName()); ExecutionImpl copy = new ExecutionImpl(); copy.setNode(node); return copy; }