@Override protected Object clone() throws TCloneNotSupportedException { if (!(this instanceof TCloneable) && Platform.getPlatformObject(this).getPlatformClass().getMetadata().getArrayItem() == null) { throw new TCloneNotSupportedException(); } Object result = Platform.clone(this); Platform.getPlatformObject(result).setId(Platform.nextObjectId()); return result; }
@Rename("<init>") private void init() { Platform.getPlatformObject(this).setId(Platform.nextObjectId()); }