title: Intent Pass OrmLite Object ID Value Missing？
body: <pre><code>import android.os.Parcel;
  import com.j256.ormlite.field.DatabaseField;
  import com.j256.ormlite.table.DatabaseTable;
  
  @DatabaseTable(tableName = "t_notice")
  public class NoticeBody implements android.os.Parcelable {
      @DatabaseField(generatedId = true)
      private int id;
      @DatabaseField
      private String userId;
      @DatabaseField
      private boolean isRead = false;
      @DatabaseField
      private String content;
      @DatabaseField
      private String title;
      @DatabaseField
      private String time;
      @DatabaseField
      private String noticeId;
      @DatabaseField
      private String lastUpdateTime;
  
      public String getLastUpdateTime() {
          return lastUpdateTime;
      }
  
      public void setLastUpdateTime(String lastUpdateTime) {
          this.lastUpdateTime = lastUpdateTime;
      }
  
      public String getUserId() {
          return userId;
      }
  
      public void setUserId(String userId) {
          this.userId = userId;
      }
  
      public boolean isRead() {
          return isRead;
      }
  
      public void setRead(boolean read) {
          isRead = read;
      }
  
      public String getContent() {
          return content;
      }
  
      public void setContent(String content) {
          this.content = content;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public String getTime() {
          return time;
      }
  
      public void setTime(String time) {
          this.time = time;
      }
  
      public String getNoticeId() {
          return noticeId;
      }
  
      public void setNoticeId(String noticeId) {
          this.noticeId = noticeId;
      }
  
      public NoticeBody() {
      }
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeString(this.userId);
          dest.writeByte(this.isRead ? (byte) 1 : (byte) 0);
          dest.writeString(this.content);
          dest.writeString(this.title);
          dest.writeString(this.time);
          dest.writeString(this.noticeId);
          dest.writeString(this.lastUpdateTime);
      }
  
      protected NoticeBody(Parcel in) {
          this.userId = in.readString();
          this.isRead = in.readByte() != 0;
          this.content = in.readString();
          this.title = in.readString();
          this.time = in.readString();
          this.noticeId = in.readString();
          this.lastUpdateTime = in.readString();
      }
  
      public static final Creator&lt;NoticeBody&gt; CREATOR = new Creator&lt;NoticeBody&gt;() {
          @Override
          public NoticeBody createFromParcel(Parcel source) {
              return new NoticeBody(source);
          }
  
          @Override
          public NoticeBody[] newArray(int size) {
              return new NoticeBody[size];
          }
      };
  
      @Override
      public String toString() {
          return "NoticeBody{" + "id=" + id + ", userId='" + userId + '\'' + ", isRead=" + isRead + ", content='" + content + '\'' + ", title='" + title + '\'' + ", time='" + time + '\'' + ", noticeId='" + noticeId + '\'' + ", lastUpdateTime='" + lastUpdateTime + '\'' + '}';
      }
  
  }
  </code></pre>
  
  <p>Click a message from the message list to jump to the details page</p>
  
  <pre><code>  Intent intent = new Intent(NoticeActivity.this, NoticeDetailActivity.class);
                      intent.putExtra("noticInfo", info);
                      HPLog.d(HPLog.SSX_TAG, "put:" + info.toString());
                      NoticeActivity.this.startActivity(intent);
  </code></pre>
  
  <p>Detail activity   to receive the message passed</p>
  
  <pre><code>    NoticeBody notice = getIntent().getParcelableExtra("noticInfo");
      if (notice != null) {
          HPLog.d(HPLog.SSX_TAG, "get:" + notice.toString());
  }
  </code></pre>
  
  <p>But the result is</p>
  
  <p>ssx:(NoticeActivity.java:174)→put:NoticeBody{id=1, userId='19645238', isRead=true, content='message', title='title', time='20170510175931', noticeId='375905', lastUpdateTime='20170510175931'}</p>
  
  <p>ssx:(NoticeDetailActivity.java:42)→get:NoticeBody{id=0, userId='19645238', isRead=true, content='content', title='title', time='20170510175931', noticeId='375905', lastUpdateTime='20170510175931'}</p>