@Override
 public String toString() {
   list = new LinkedList<Object>();
   for (Entity e : toManyNode.getList()) {
     list.add(e.getEntityContext().getProxy(e));
   }
   return toManyNode.toString();
 }
Example #2
0
 /**
  * Sets the optimistic lock change, assumes the node is not there yet
  *
  * @param entity
  * @param newOptimisticLock
  */
 public void setOptimisticLock(Entity entity, Long newOptimisticLock) {
   ValueNode olNode = entity.getOptimisticLock();
   changes.add(new Change(olNode, olNode.getValue(), newOptimisticLock));
 }