/*
 * Copyright 2003 - 2017 The eFaps Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.efaps.rest;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;

import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;

/**
 * The Class ObjectMapperResolver.
 */
@Provider
@Produces(MediaType.APPLICATION_JSON)
public class ObjectMapperResolver
    implements ContextResolver<ObjectMapper>
{

    /** The mapper. */
    private final ObjectMapper mapper;

    public ObjectMapperResolver()
    {
        this.mapper = new ObjectMapper();
        this.mapper.registerModule(new JavaTimeModule());
    }

    @Override
    public ObjectMapper getContext(final Class<?> type)
    {
        return this.mapper;
    }
}

@@ -22,10 +22,10 @@
 - 20
-17
+20
  The
@@ -631,122 +631,8 @@
 t;%0A%0A
-import com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;%0A%0A
 impo
@@ -765,16 +765,190 @@
 vider;%0A%0A
+import com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.databind.SerializationFeature;%0Aimport com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;%0A%0A
 /**%0A * T
@@ -1219,29 +1219,24 @@
   %7B%0A        
-this.
 mapper = new
@@ -1260,21 +1260,16 @@
         
-this.
 mapper.r
@@ -1305,16 +1305,97 @@
 ule());%0A
+        mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);%0A
     %7D%0A%0A 
@@ -1461,32 +1461,32 @@
 %3C?%3E type)%0A    %7B%0A
+
         return t
@@ -1488,13 +1488,8 @@
 urn 
-this.
 mapp

Update ObjectMapper