package io.reactivesw.common.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;

/**
 * Created by Davis on 16/11/16.
 */
@Entity
@Table(name = "common_localized_String")
public class LocalizedStringEntity extends BaseIdEntity {

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

  /**
   * text value.
   */
  @Column(columnDefinition = "text")
  protected String text;

//  /**
//   * Instantiates a new Localized string entity.
//   */
//  public LocalizedStringEntity() {
//  }
//
//  /**
//   * Instantiates a new Localized string entity.
//   *
//   * @param language the language
//   * @param text     the text
//   */
//  public LocalizedStringEntity(String language, String text) {
//    this.language = language;
//    this.text = 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;
  }

//  @Override
//  public String toString() {
//    return "LocalizedStringEntity{"
//            + "language='" + language + '\''
//            + ", text='" + text + '\''
//            + '}';
//  }
}

@@ -563,26 +563,22 @@
  text;%0A%0A
-//
   /**%0A
-//
    * Ins
@@ -618,26 +618,22 @@
 entity.%0A
-//
    */%0A
-//
   public
@@ -663,27 +663,32 @@
 ) %7B%0A
-//  %7D%0A//%0A//
+    super();%0A  %7D%0A%0A
   /**%0A
-//
    *
@@ -736,17 +736,13 @@
 ty.%0A
-//
    *%0A
-//
    *
@@ -771,18 +771,16 @@
 anguage%0A
-//
    * @pa
@@ -805,18 +805,14 @@
 ext%0A
-//
    */%0A
-//
   pu
@@ -866,26 +866,24 @@
 ing text) %7B%0A
-//
     this.lan
@@ -900,18 +900,16 @@
 nguage;%0A
-//
     this
@@ -922,18 +922,16 @@
 = text;%0A
-//
   %7D%0A%0A  /
@@ -1427,18 +1427,16 @@
 t;%0A  %7D%0A%0A
-//
   @Overr
@@ -1439,18 +1439,16 @@
 verride%0A
-//
   public
@@ -1468,18 +1468,16 @@
 ing() %7B%0A
-//
     retu
@@ -1504,18 +1504,41 @@
 ntity%7B%22%0A
-//
+            + %22id=%22 + id%0A
         
@@ -1566,34 +1566,32 @@
 language + '%5C''%0A
-//
             + %22,
@@ -1613,18 +1613,16 @@
  + '%5C''%0A
-//
         
@@ -1636,10 +1636,8 @@
 %7D';%0A
-//
   %7D%0A

edit localizedstringentity