public class JsonMetadataFactory implements DatastoreMetadataFactory<JsonNodeMetadata, String> {
@Override
public JsonNodeMetadata createEntityMetadata(AnnotatedType annotatedType, Map<Class<?>, TypeMetadata<JsonNodeMetadata>> metadataByType) {
return new JsonNodeMetadata(annotatedType.getAnnotatedElement().getName());
}