@Test public void testFindAll() throws Exception { List<MetadataSchema> found = metadataSchemaService.findAll(context); assertThat("testFindAll 0", found, notNullValue()); assertTrue("testFindAll 1", found.size() >= 1); boolean added = false; for (MetadataSchema msc : found) { if (msc.equals(ms)) { added = true; } } assertTrue("testFindAll 2", added); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); if (!getClass().equals(objClass)) { return false; } final MetadataSchema other = (MetadataSchema) obj; if (!this.id.equals(other.id)) { return false; } if ((this.namespace == null) ? (other.namespace != null) : !this.namespace.equals(other.namespace)) { return false; } return true; }
MetadataSchema implements ReloadableEntity<Integer> { @Override public boolean equals(Object obj) { if (obj == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); if (!getClass().equals(objClass)) { return false; } final MetadataSchema other = (MetadataSchema) obj; if (!this.id.equals(other.id)) { return false; } if ((this.namespace == null) ? (other.namespace != null) : !this.namespace.equals(other.namespace)) { return false; } return true; } }
MetadataSchema implements ReloadableEntity<Integer> { @Override public boolean equals(Object obj) { if (obj == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); if (!getClass().equals(objClass)) { return false; } final MetadataSchema other = (MetadataSchema) obj; if (!this.id.equals(other.id)) { return false; } if ((this.namespace == null) ? (other.namespace != null) : !this.namespace.equals(other.namespace)) { return false; } return true; } protected  MetadataSchema(); }
MetadataSchema implements ReloadableEntity<Integer> { @Override public boolean equals(Object obj) { if (obj == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); if (!getClass().equals(objClass)) { return false; } final MetadataSchema other = (MetadataSchema) obj; if (!this.id.equals(other.id)) { return false; } if ((this.namespace == null) ? (other.namespace != null) : !this.namespace.equals(other.namespace)) { return false; } return true; } protected  MetadataSchema(); @Override boolean equals(Object obj); @Override int hashCode(); String getNamespace(); void setNamespace(String namespace); String getName(); void setName(String name); Integer getID(); }
MetadataSchema implements ReloadableEntity<Integer> { @Override public boolean equals(Object obj) { if (obj == null) { return false; } Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(obj); if (!getClass().equals(objClass)) { return false; } final MetadataSchema other = (MetadataSchema) obj; if (!this.id.equals(other.id)) { return false; } if ((this.namespace == null) ? (other.namespace != null) : !this.namespace.equals(other.namespace)) { return false; } return true; } protected  MetadataSchema(); @Override boolean equals(Object obj); @Override int hashCode(); String getNamespace(); void setNamespace(String namespace); String getName(); void setName(String name); Integer getID();  }