// Path: src/main/java/net/worldline/training/angular/data/bookcat/BookComment.java
// public class BookComment {
// 
//    
//     private String user;
//     private String comment;
//     private int rate;
//    
//      public BookComment() {
//     }
// 
// 
//     
//     public String getUser() {
//         return user;
//     }
// 
//     public void setUser(String author) {
//         this.user = author;
//     }
// 
//     public String getComment() {
//         return comment;
//     }
// 
//     public void setComment(String content) {
//         this.comment = content;
//     }
// 
//     public int getRate() {
//         return rate;
//     }
// 
//     public void setRate(int rate) {
//         this.rate = rate;
//     }
// 
//  }


import net.worldline.training.angular.data.bookcat.BookComment;
import org.apache.tapestry5.json.JSONArray;
import org.apache.tapestry5.json.JSONObject;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.ObjectWriter;
import java.io.IOException;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setIsNew(boolean isNew) {
        this.isNew = isNew;
    }

    public boolean getIsNew() {
        return isNew;
    }

// Path: src/main/java/net/worldline/training/angular/data/bookcat/BookComment.java
// public class BookComment {
// 
//    
//     private String user;
//     private String comment;
//     private int rate;
//    
//      public BookComment() {
//     }
// 
// 
//     
//     public String getUser() {
//         return user;
//     }
// 
//     public void setUser(String author) {
//         this.user = author;
//     }
// 
//     public String getComment() {
//         return comment;
//     }
// 
//     public void setComment(String content) {
//         this.comment = content;
//     }
// 
//     public int getRate() {
//         return rate;
//     }
// 
//     public void setRate(int rate) {
//         this.rate = rate;
//     }
// 
//  }


// Path: src/main/java/net/worldline/training/angular/data/bookcat/Book.java
import net.worldline.training.angular.data.bookcat.BookComment;
import org.apache.tapestry5.json.JSONArray;
import org.apache.tapestry5.json.JSONObject;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.ObjectWriter;
import java.io.IOException;

    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setIsNew(boolean isNew) {
        this.isNew = isNew;
    }

    public boolean getIsNew() {
        return isNew;
    }

    public BookComment[] getComments() {