@Test public void testLoadProperties() { final long entityId = 0xF00BA7; final float searchScore = 3.0272F; final DomainEntity entity = new MyDomainEntity(); Map<String, Object> props = new HashMap<String, Object>(); props.put("__HSearch_id", entityId); props.put("__HSearch_Score", searchScore); props.put("__HSearch_This", entity); sut.loadProperties(props); assertEquals(entityId, sut.getEntityId()); assertEquals(searchScore, sut.getSearchIndexScore(), 0); assertEquals(entity, sut.getManagedEntity()); }
public void loadProperties(final Map<String, Object> properties) { if (properties.containsKey("id")) { setEntityId((Long) properties.get("id")); } else if (properties.containsKey("__HSearch_id")) { setEntityId((Long) properties.get("__HSearch_id")); } if (properties.containsKey("__HSearch_Score")) { setSearchIndexScore((Float) properties.get("__HSearch_Score")); } if (properties.containsKey("__HSearch_This")) { setManagedEntity((DomainEntity) properties.get("__HSearch_This")); } }
ModelView implements Serializable { public void loadProperties(final Map<String, Object> properties) { if (properties.containsKey("id")) { setEntityId((Long) properties.get("id")); } else if (properties.containsKey("__HSearch_id")) { setEntityId((Long) properties.get("__HSearch_id")); } if (properties.containsKey("__HSearch_Score")) { setSearchIndexScore((Float) properties.get("__HSearch_Score")); } if (properties.containsKey("__HSearch_This")) { setManagedEntity((DomainEntity) properties.get("__HSearch_This")); } } }
ModelView implements Serializable { public void loadProperties(final Map<String, Object> properties) { if (properties.containsKey("id")) { setEntityId((Long) properties.get("id")); } else if (properties.containsKey("__HSearch_id")) { setEntityId((Long) properties.get("__HSearch_id")); } if (properties.containsKey("__HSearch_Score")) { setSearchIndexScore((Float) properties.get("__HSearch_Score")); } if (properties.containsKey("__HSearch_This")) { setManagedEntity((DomainEntity) properties.get("__HSearch_This")); } }  }
ModelView implements Serializable { public void loadProperties(final Map<String, Object> properties) { if (properties.containsKey("id")) { setEntityId((Long) properties.get("id")); } else if (properties.containsKey("__HSearch_id")) { setEntityId((Long) properties.get("__HSearch_id")); } if (properties.containsKey("__HSearch_Score")) { setSearchIndexScore((Float) properties.get("__HSearch_Score")); } if (properties.containsKey("__HSearch_This")) { setManagedEntity((DomainEntity) properties.get("__HSearch_This")); } }  void loadProperties(final Map<String, Object> properties); long getEntityId(); float getSearchIndexScore(); @Override String toString(); boolean hasSearchIndexExplanation(); String getSearchIndexExplanationString(); void setSearchIndexExplanationString(final String inSearchIndexExplanationString); FieldMatch getFieldMatch(); void setFieldMatch(final FieldMatch inFieldMatch); Date getServerDateTime(); void setServerDateTime(final Date inServerDateTime); }
ModelView implements Serializable { public void loadProperties(final Map<String, Object> properties) { if (properties.containsKey("id")) { setEntityId((Long) properties.get("id")); } else if (properties.containsKey("__HSearch_id")) { setEntityId((Long) properties.get("__HSearch_id")); } if (properties.containsKey("__HSearch_Score")) { setSearchIndexScore((Float) properties.get("__HSearch_Score")); } if (properties.containsKey("__HSearch_This")) { setManagedEntity((DomainEntity) properties.get("__HSearch_This")); } }  void loadProperties(final Map<String, Object> properties); long getEntityId(); float getSearchIndexScore(); @Override String toString(); boolean hasSearchIndexExplanation(); String getSearchIndexExplanationString(); void setSearchIndexExplanationString(final String inSearchIndexExplanationString); FieldMatch getFieldMatch(); void setFieldMatch(final FieldMatch inFieldMatch); Date getServerDateTime(); void setServerDateTime(final Date inServerDateTime); static final String UNINITIALIZED_STRING_VALUE; static final long UNINITIALIZED_LONG_VALUE; static final int UNINITIALIZED_INTEGER_VALUE; static final float UNINITIALIZED_FLOAT_VALUE; static final Date UNINITIALIZED_DATE_VALUE; }