@Test public void testEmptyString() { final JsonMapConverter c = new JsonMapConverter(); assertNull(c.convertToEntityAttribute("")); }
@Override @SuppressWarnings("unchecked") public Map<String, Object> convertToEntityAttribute(final String str) { if (str == null || str.isEmpty()) { return null; } try { return Json.getObjectMapper().readValue(str, Map.class); } catch (final IOException ex) { throw new MinijaxException(ex.getMessage(), ex); } }
JsonMapConverter implements AttributeConverter<Map<String, Object>, String> { @Override @SuppressWarnings("unchecked") public Map<String, Object> convertToEntityAttribute(final String str) { if (str == null || str.isEmpty()) { return null; } try { return Json.getObjectMapper().readValue(str, Map.class); } catch (final IOException ex) { throw new MinijaxException(ex.getMessage(), ex); } } }
JsonMapConverter implements AttributeConverter<Map<String, Object>, String> { @Override @SuppressWarnings("unchecked") public Map<String, Object> convertToEntityAttribute(final String str) { if (str == null || str.isEmpty()) { return null; } try { return Json.getObjectMapper().readValue(str, Map.class); } catch (final IOException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  }
JsonMapConverter implements AttributeConverter<Map<String, Object>, String> { @Override @SuppressWarnings("unchecked") public Map<String, Object> convertToEntityAttribute(final String str) { if (str == null || str.isEmpty()) { return null; } try { return Json.getObjectMapper().readValue(str, Map.class); } catch (final IOException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  @Override String convertToDatabaseColumn(final Map<String, Object> map); @Override @SuppressWarnings("unchecked") Map<String, Object> convertToEntityAttribute(final String str); }
JsonMapConverter implements AttributeConverter<Map<String, Object>, String> { @Override @SuppressWarnings("unchecked") public Map<String, Object> convertToEntityAttribute(final String str) { if (str == null || str.isEmpty()) { return null; } try { return Json.getObjectMapper().readValue(str, Map.class); } catch (final IOException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  @Override String convertToDatabaseColumn(final Map<String, Object> map); @Override @SuppressWarnings("unchecked") Map<String, Object> convertToEntityAttribute(final String str);  }