package de.kardroids.books.models;

import java.util.Date;

/**
 * Created by kk on 02.03.15.
 */
public class Book {

    private Integer id;

    private String title;

    private String shortDescription;

    private String longDescription;

    private String authors;

    private String translator;

    private String publisher;

    private Date releaseDate;

    private String isbn10;

    private String isbn13;

    private Integer numberSites;

    private String coverImagePath;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getShortDescription() {
        return shortDescription;
    }

    public void setShortDescription(String shortDescription) {
        this.shortDescription = shortDescription;
    }

    public String getLongDescription() {
        return longDescription;
    }

    public void setLongDescription(String longDescription) {
        this.longDescription = longDescription;
    }

    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public String getTranslator() {
        return translator;
    }

    public void setTranslator(String translator) {
        this.translator = translator;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getIsbn10() {
        return isbn10;
    }

    public void setIsbn10(String isbn10) {
        this.isbn10 = isbn10;
    }

    public String getIsbn13() {
        return isbn13;
    }

    public void setIsbn13(String isbn13) {
        this.isbn13 = isbn13;
    }

    public Integer getNumberSites() {
        return numberSites;
    }

    public void setNumberSites(Integer numberSites) {
        this.numberSites = numberSites;
    }

    public String getCoverImagePath() {
        return coverImagePath;
    }

    public void setCoverImagePath(String coverImagePath) {
        this.coverImagePath = coverImagePath;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", title='" + title + '\'' +
                '}';
    }
}

@@ -29,16 +29,73 @@
 odels;%0A%0A
+import android.os.Parcel;%0Aimport android.os.Parcelable;%0A%0A
 import j
@@ -144,16 +144,23 @@
 .03.15.%0A
+ *%0A * %0A
  */%0Apubl
@@ -173,16 +173,38 @@
 ss Book 
+implements Parcelable 
 %7B%0A%0A    p
@@ -2689,10 +2689,1790 @@
 ;%0A    %7D%0A
-%7D
+%0A%0A    // For Parcel - (Intent,Bundle)%0A%0A%0A    public static final Parcelable.Creator%3CBook%3E CREATOR =%0A            new Parcelable.Creator%3CBook%3E()%7B%0A%0A                @Override%0A                public Book createFromParcel(Parcel source) %7B%0A                    return new Book(source);%0A                %7D%0A%0A                @Override%0A                public Book%5B%5D newArray(int size) %7B%0A                    return new Book%5Bsize%5D;%0A                %7D%0A            %7D;%0A%0A    public Book (Parcel source) %7B%0A        readFromParcel(source);%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A%0A        dest.writeInt(id);%0A        dest.writeString(title);%0A        dest.writeString(shortDescription);%0A        dest.writeString(longDescription);%0A        dest.writeString(authors);%0A        dest.writeString(translator);%0A        dest.writeString(publisher);%0A        // hope this works%0A        dest.writeLong(releaseDate.getTime());%0A        dest.writeString(isbn10);%0A        dest.writeString(isbn13);%0A%0A        dest.writeInt(numberSites);%0A        dest.writeString(coverImagePath);%0A    %7D%0A%0A    public void readFromParcel(Parcel source)%7B%0A        this.id = source.readInt();%0A        this.title = source.readString();%0A        this.shortDescription = source.readString();%0A        this.longDescription = source.readString();%0A        this.authors = source.readString();%0A        this.translator = source.readString();%0A        this.publisher = source.readString();%0A        // hope this works%0A        this.releaseDate =new Date(source.readLong());%0A        this.isbn10 =source.readString();%0A        this.isbn13 =source.readString();%0A%0A        this.id =source.readInt();%0A        this.coverImagePath =source.readString();%0A    %7D%0A%7D%0A
 %0A

Update Book.java. Add a Parcelable Interface (for Bundle)