package io.reactivesw.common.entities;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.HashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import io.reactivesw.common.utils.LocalizedStringSerializer;

/**
 * Created by Davis on 16/11/16.
 */
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class LocalizedStringEntity extends BaseIdEntity{

  /**
   * language.
   */
  @Column
  private String language;

  /**
   * text value.
   */
  @Column
  private String text;

  /**
   * Gets language.
   *
   * @return the language
   */
  public String getLanguage() {
    return language;
  }

  /**
   * Sets language.
   *
   * @param language the language
   */
  public void setLanguage(String language) {
    this.language = language;
  }

  /**
   * Gets text.
   *
   * @return the text
   */
  public String getText() {
    return text;
  }

  /**
   * Sets text.
   *
   * @param text the text
   */
  public void setText(String text) {
    this.text = text;
  }
}

@@ -663,37 +663,39 @@
 /%0A  @Column%0A  pr
-ivate
+otected
  String language
@@ -744,26 +744,379 @@
   pr
-ivate String
+otected String text;%0A%0A  /**%0A   * Instantiates a new Localized string entity.%0A   */%0A  public LocalizedStringEntity() %7B%0A  %7D%0A%0A  /**%0A   * Instantiates a new Localized string entity.%0A   *%0A   * @param language the language%0A   * @param text     the text%0A   */%0A  public LocalizedStringEntity(String language, String text) %7B%0A    this.language = language;%0A    this.text =
  text;
+%0A  %7D
 %0A%0A  
@@ -1578,32 +1578,32 @@
 (String text) %7B%0A
-
     this.text = 
@@ -1611,11 +1611,184 @@
 ext;%0A  %7D
+%0A%0A  @Override%0A  public String toString() %7B%0A    return %22LocalizedStringEntity%7B%22%0A        + %22language='%22 + language + '%5C''%0A        + %22, text='%22 + text + '%5C''%0A        + '%7D';%0A  %7D
 %0A%7D%0A

edit LocalizedStringEntity