@Test public void getId() throws Exception { Assert.assertEquals("1", featureModel.getId(feature1)); }
@Override public String getId(Object feature) throws LayerException { Entity entity = entityMapper.asEntity(feature); Object id = entity.getId(getFeatureInfo().getIdentifier().getName()); return id == null ? null : id.toString(); }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public String getId(Object feature) throws LayerException { Entity entity = entityMapper.asEntity(feature); Object id = entity.getId(getFeatureInfo().getIdentifier().getName()); return id == null ? null : id.toString(); } }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public String getId(Object feature) throws LayerException { Entity entity = entityMapper.asEntity(feature); Object id = entity.getId(getFeatureInfo().getIdentifier().getName()); return id == null ? null : id.toString(); }  }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public String getId(Object feature) throws LayerException { Entity entity = entityMapper.asEntity(feature); Object id = entity.getId(getFeatureInfo().getIdentifier().getName()); return id == null ? null : id.toString(); }  @Override void setLayerInfo(VectorLayerInfo layerInfo); @Override Attribute getAttribute(Object feature, String name); @Override @SuppressWarnings("rawtypes") Map<String, Attribute> getAttributes(Object feature); @Override String getId(Object feature); @Override Geometry getGeometry(Object feature); @Override @SuppressWarnings("unchecked") void setAttributes(Object feature, Map<String, Attribute> attributes); @Override void setGeometry(Object feature, Geometry geometry); @Override Object newInstance(); @Override Object newInstance(String id); @Override int getSrid(); @Override String getGeometryAttributeName(); @Override boolean canHandle(Object feature); }
HibernateFeatureModel extends HibernateLayerUtil implements FeatureModel { @Override public String getId(Object feature) throws LayerException { Entity entity = entityMapper.asEntity(feature); Object id = entity.getId(getFeatureInfo().getIdentifier().getName()); return id == null ? null : id.toString(); }  @Override void setLayerInfo(VectorLayerInfo layerInfo); @Override Attribute getAttribute(Object feature, String name); @Override @SuppressWarnings("rawtypes") Map<String, Attribute> getAttributes(Object feature); @Override String getId(Object feature); @Override Geometry getGeometry(Object feature); @Override @SuppressWarnings("unchecked") void setAttributes(Object feature, Map<String, Attribute> attributes); @Override void setGeometry(Object feature, Geometry geometry); @Override Object newInstance(); @Override Object newInstance(String id); @Override int getSrid(); @Override String getGeometryAttributeName(); @Override boolean canHandle(Object feature);  }