content: package com.an.room.model;
  
  import android.arch.persistence.room.ColumnInfo;
  import android.arch.persistence.room.Entity;
  import android.arch.persistence.room.PrimaryKey;
  import android.arch.persistence.room.TypeConverters;
  
  import com.an.room.util.TimestampConverter;
  
  import java.io.Serializable;
  import java.util.Date;
  
  
  @Entity
  public class Note implements Serializable {
  
      @PrimaryKey(autoGenerate = true)
      private int id;
  
      private String title;
      private String description;
  
  
      @ColumnInfo(name = "created_at")
      @TypeConverters({TimestampConverter.class})
      private Date createdAt;
  
      @ColumnInfo(name = "modified_at")
      @TypeConverters({TimestampConverter.class})
      private Date modifiedAt;
  
      private boolean encrypt;
      private String password;
  
      public int getId() {
          return id;
      }
  
      public void setId(int id) {
          this.id = id;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
      public Date getCreatedAt() {
          return createdAt;
      }
  
      public void setCreatedAt(Date createdAt) {
          this.createdAt = createdAt;
      }
  
      public Date getModifiedAt() {
          return modifiedAt;
      }
  
      public void setModifiedAt(Date modifiedAt) {
          this.modifiedAt = modifiedAt;
      }
  
      public boolean isEncrypt() {
          return encrypt;
      }
  
      public void setEncrypt(boolean encrypt) {
          this.encrypt = encrypt;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
  }
  