package com.jiuqi.mobile.core.service.db; import java.io.Serializable; import java.util.List; import com.jqmobile.core.orm.DBColumn; import com.jqmobile.core.orm.DBTable; @DBTable(name="t_student") public class Student implements Serializable{ /** * */ @DBColumn(mapping=false) private static final long serialVersionUID = -6603119541049704091L; @DBColumn(primaryId=true) private String id; private int age; private Book book; private List<Toy> toys; public List<Toy> getToys() { return toys; } public void setToys(List<Toy> toys) { this.toys = toys; } public String getId() { return id; } public void setId(String id) { this.id = id; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public Book getBook() { return book; } public void setBook(Book book) { this.book = book; } public Student() { } public Student(String id, int age, Book book) { super(); this.id = id; this.age = age; this.book = book; } public Student(String id, int age) { super(); this.id = id; this.age = age; } public Student(String id, int age, Book book, List<Toy> toys) { super(); this.id = id; this.age = age; this.book = book; this.toys = toys; } @Override public String toString() { return "Student [id=" + id + ", age=" + age + ", book=" + book + ", toys=" + toys + "]"; } }