@Test public void testToString() { final long id = 38555L; MyDomainEntity sut = new MyDomainEntity(); sut.setId(id); assertEquals("MyDomainEntity#" + id, sut.toString()); assertEquals("MyDomainEntity#" + id, sut.toString()); }
@Override public String toString() { if (toStringBase == null) { toStringBase = this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.') + 1) + "#"; } return toStringBase + id; }
DomainEntity extends WrappedLightEntity implements DomainEntityIdentifiable { @Override public String toString() { if (toStringBase == null) { toStringBase = this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.') + 1) + "#"; } return toStringBase + id; } }
DomainEntity extends WrappedLightEntity implements DomainEntityIdentifiable { @Override public String toString() { if (toStringBase == null) { toStringBase = this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.') + 1) + "#"; } return toStringBase + id; }  }
DomainEntity extends WrappedLightEntity implements DomainEntityIdentifiable { @Override public String toString() { if (toStringBase == null) { toStringBase = this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.') + 1) + "#"; } return toStringBase + id; }  long getVersion(); long getId(); @Override String toString(); }
DomainEntity extends WrappedLightEntity implements DomainEntityIdentifiable { @Override public String toString() { if (toStringBase == null) { toStringBase = this.getClass().getName().substring(this.getClass().getName().lastIndexOf('.') + 1) + "#"; } return toStringBase + id; }  long getVersion(); long getId(); @Override String toString();  }