content: /**
   * Copyright (c) 2010-present Abixen Systems. All rights reserved.
   *
   * This library is free software; you can redistribute it and/or modify it under
   * the terms of the GNU Lesser General Public License as published by the Free
   * Software Foundation; either version 2.1 of the License, or (at your option)
   * any later version.
   *
   * This library is distributed in the hope that it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
   * details.
   */
  package com.abixen.platform.service.webcontent.application.dto;
  
  import com.abixen.platform.common.application.representation.SimpleAuditingRepresentation;
  import com.abixen.platform.service.webcontent.domain.model.WebContentType;
  import com.fasterxml.jackson.annotation.JsonSubTypes;
  import com.fasterxml.jackson.annotation.JsonTypeInfo;
  import lombok.Getter;
  import lombok.Setter;
  import lombok.ToString;
  import lombok.experimental.Accessors;
  
  @Getter
  @Setter
  @Accessors(chain = true)
  @ToString
  @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "classType")
  @JsonSubTypes({@JsonSubTypes.Type(value = SimpleWebContentDto.class, name = "SIMPLE"),
          @JsonSubTypes.Type(value = AdvancedWebContentDto.class, name = "ADVANCED")})
  public class WebContentDto extends SimpleAuditingRepresentation {
  
      protected Long id;
      protected WebContentType type;
      protected String title;
      protected String content;
  
  }