@Test public void testFindOrCreateEntity() throws LayerException { BeanEntityMapper mapper = new BeanEntityMapper(); Entity entity = mapper.findOrCreateEntity("org.geomajas.layer.bean.FeatureBean", null); entity.setAttribute("longAttr", 6L); Object object = ((BeanEntity)entity).getBean(); Assert.assertTrue(object instanceof FeatureBean); Assert.assertEquals(new Long(6L), ((FeatureBean)object).getLongAttr()); }
public Entity findOrCreateEntity(String dataSourceName, Object id) throws LayerException { return new BeanEntity(dataSourceName, id); }
BeanEntityMapper implements  EntityMapper { public Entity findOrCreateEntity(String dataSourceName, Object id) throws LayerException { return new BeanEntity(dataSourceName, id); } }
BeanEntityMapper implements  EntityMapper { public Entity findOrCreateEntity(String dataSourceName, Object id) throws LayerException { return new BeanEntity(dataSourceName, id); }  }
BeanEntityMapper implements  EntityMapper { public Entity findOrCreateEntity(String dataSourceName, Object id) throws LayerException { return new BeanEntity(dataSourceName, id); }  Entity findOrCreateEntity(String dataSourceName, Object id); Entity asEntity(Object object); }
BeanEntityMapper implements  EntityMapper { public Entity findOrCreateEntity(String dataSourceName, Object id) throws LayerException { return new BeanEntity(dataSourceName, id); }  Entity findOrCreateEntity(String dataSourceName, Object id); Entity asEntity(Object object);  }