@Override public String toString() { return getClass().getSimpleName() + " {initialized=" + wasInitialized() + ", dirty=" + isDirty() + "}" + (collection != null ? ": " + collection.toString() : ""); }
@Override public String toString() { return getClass().getName() + " {initialized=" + wasInitialized() + ", dirty=" + isDirty() + "}" + (collection != null ? ": " + collection.toString() : ""); }
@Override public String toString() { return getClass().getSimpleName() + " {initialized=" + wasInitialized() + ", dirty=" + isDirty() + "}" + (collection != null ? ": " + collection.toString() : ""); }
public PersistentCollection<C> clone(boolean uninitialize) { try { @SuppressWarnings("unchecked") AbstractPersistentCollection<C> collection = TypeUtil.newInstance(getClass(), AbstractPersistentCollection.class); if (wasInitialized() && !uninitialize) collection.init(getCollection(), getDetachedState(), isDirty()); return collection; } catch (Exception e) { throw new RuntimeException("Could not clone collection " + this.getClass().getName(), e); } }
public PersistentCollection<C> clone(boolean uninitialize) { try { @SuppressWarnings("unchecked") AbstractPersistentCollection<C> collection = TypeUtil.newInstance(getClass(), AbstractPersistentCollection.class); if (wasInitialized() && !uninitialize) collection.init(getCollection(), getDetachedState(), isDirty()); return collection; } catch (Exception e) { throw new RuntimeException("Could not clone collection " + this.getClass().getName(), e); } }
public PersistentCollection clone(boolean uninitialize) { try { @SuppressWarnings("unchecked") AbstractPersistentCollection<C> collection = TypeUtil.newInstance(getClass(), AbstractPersistentCollection.class); if (wasInitialized() && !uninitialize) collection.init(getCollection(), getDetachedState(), isDirty()); return collection; } catch (Exception e) { throw new RuntimeException("Could not clone collection " + this.getClass().getName(), e); } }