package com.jiuqi.mobile.core.service.db;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.jqmobile.core.orm.AutoVersionControl;
import com.jqmobile.core.orm.DBColumn;
import com.jqmobile.core.orm.DBTable;
@DBTable(name="t_newbean")
public class NewBean implements Serializable,AutoVersionControl{
@DBColumn(mapping=false)
private static final long serialVersionUID = -1620212635548830508L;
@DBColumn(primaryId=true)
private String recid;
@DBColumn(canNull=false)
private String name;
private int age;
@DBColumn(date=true)
private long birthday;
private long version;
@DBColumn(cascadeAll=false)
private Toy toy;
@DBColumn(cascadeAll=false)
private List<Book> books=new ArrayList<Book>();
public String getRecid() {
return recid;
}
public void setRecid(String recid) {
this.recid = recid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public long getBirthday() {
return birthday;
}
public void setBirthday(long birthday) {
this.birthday = birthday;
}
public long getVersion() {
return version;
}
public void setVersion(long version) {
this.version = version;
}
@Override
public String getVersionWord() {
return "version";
}
public Toy getToy() {
return toy;
}
public void setToy(Toy toy) {
this.toy = toy;
}
public List<Book> getBooks() {
return books;
}
public void setBooks(List<Book> books) {
this.books = books;
}
@Override
public String toString() {
return "NewBean [recid=" + recid + ", name=" + name + ", age=" + age + ", birthday=" + birthday + ", version=" + version + ", toy=" + toy + ", books=" + books + "]";
}
}