title: Spring MVC + Jackson: field not being serialized
body: <p>I am trying to make a simple round-trip with a REST API that leads to storing an entity into the db and then returns the stored entity.
  Going down works fine and the entity is stored and correctly returned to the REST Controller. However, when I return it, Jackson seems to serialize it incorrectly, as the "name" attribute is not included.</p>
  
  <p>This is the entity:</p>
  
  <pre><code>@Entity
  @Configurable
  public class MyEntity extends IdentifiableEntity {
  
      private String name;
  
      protected MyEntity() {
      };
  
      public MyEntity(String name) {
          this.name = name;
      }
  }
  </code></pre>
  
  <p>and the extended entity:</p>
  
  <pre><code>@Configurable
  @Inheritance(strategy = InheritanceType.JOINED)
  @Entity
  public abstract class IdentifiableEntity {
  
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      @Column(name = "id")
      private Long id;
  
      @Version
      @Column(name = "version")
      private Integer version = 1;
  
      public String toString() {
          return ReflectionToStringBuilder.toString(this,
                  ToStringStyle.SHORT_PREFIX_STYLE);
      }
  
      public Long getId() {
          return this.id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public Integer getVersion() {
          return this.version;
      }
  
      public void setVersion(Integer version) {
          this.version = version;
      }
  }
  </code></pre>
  
  <p>The REST controller is:</p>
  
  <pre><code>@RestController
  @RequestMapping("/service")
  public class Service {
  
      @RequestMapping(value = "/public/{name}", method = RequestMethod.GET)
      public MyEntity storeEntityPublic(@PathVariable String name) {
          System.out.println("Hello " + name
                  + ", I am saving on the db. (PUBLIC)");
          MyEntity saved = controller.saveEntity(name);
  
          return saved;
      }
  }
  </code></pre>
  
  <p>Then my business logic:</p>
  
  <pre><code>@Service
  public class LogicController {
      @Autowired
      private MyEntityRepository myEntityRepository;
  
      public MyEntity saveEntity(String name) {
          MyEntity cg = new MyEntity(name);
  
          return myEntityRepository.save(cg);
      }
  }
  </code></pre>
  
  <p>I am using Spring repositories: </p>
  
  <pre><code>@Repository
  public interface MyEntityRepository extends JpaSpecificationExecutor&lt;MyEntity&gt;,
          JpaRepository&lt;MyEntity, Long&gt; {
  
  }
  </code></pre>
  
  <p>The returned JSON is:</p>
  
  <blockquote>
    <p>{"id":12,"version":1}</p>
  </blockquote>
  
  <p>Where is my "name" attribute? Is is set in the variable being returned by the REST controller.</p>