test_class.file: impl/src/test/java/org/geomajas/layer/bean/BeanEntityMapperTest.java
test_class.identifier: BeanEntityMapperTest
test_case.body: @Test
  	public void testAsEntity() throws LayerException {
  		BeanEntityMapper mapper = new BeanEntityMapper();
  		FeatureBean bean = new FeatureBean();
  		bean.setId(3L);
  		ManyToOneAttributeBean many = new ManyToOneAttributeBean();
  		many.setId(4L);
  		bean.setManyToOneAttr(many);
  		Entity entity = mapper.asEntity(bean);
  		Assert.assertEquals(new Long(3L), entity.getId("id"));
  		Assert.assertEquals(new Long(4L), entity.getChild("manyToOneAttr").getId("id"));
  	}
test_case.class_method_signature: BeanEntityMapperTest.testAsEntity()
test_case.full_signature: @Test public void testAsEntity()
test_case.identifier: testAsEntity
test_case.invocations: setId setId setManyToOneAttr asEntity assertEquals getId assertEquals getId getChild
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAsEntity()
focal_class.file: impl/src/main/java/org/geomajas/layer/bean/BeanEntityMapper.java
focal_class.identifier: BeanEntityMapper
focal_class.interfaces: implements  EntityMapper
focal_class.class_method_signature: BeanEntityMapper.findOrCreateEntity(String dataSourceName, Object id)
focal_class.full_signature: public Entity findOrCreateEntity(String dataSourceName, Object id)
focal_class.identifier: findOrCreateEntity
focal_class.modifiers: public
focal_class.parameters: (String dataSourceName, Object id)
focal_class.return: Entity
focal_class.signature: Entity findOrCreateEntity(String dataSourceName, Object id)
focal_class.class_method_signature: BeanEntityMapper.asEntity(Object object)
focal_class.full_signature: public Entity asEntity(Object object)
focal_class.identifier: asEntity
focal_class.modifiers: public
focal_class.parameters: (Object object)
focal_class.return: Entity
focal_class.signature: Entity asEntity(Object object)
focal_method.body: public Entity asEntity(Object object) {
  		return new BeanEntity(object);
  	}
focal_method.class_method_signature: BeanEntityMapper.asEntity(Object object)
focal_method.full_signature: public Entity asEntity(Object object)
focal_method.identifier: asEntity
focal_method.modifiers: public
focal_method.parameters: (Object object)
focal_method.return: Entity
focal_method.signature: Entity asEntity(Object object)