Back to project page jpdroid.
The source code is released under:
GNU General Public License
If you think the Android project jpdroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package br.com.rafael.pedidojpdroid.entity; /*from w ww . ja va 2 s . c o m*/ import java.io.Serializable; import br.com.rafael.jpdroid.annotations.Column; import br.com.rafael.jpdroid.annotations.Entity; import br.com.rafael.jpdroid.annotations.ForeignKey; import br.com.rafael.jpdroid.annotations.PrimaryKey; @Entity public class Contato implements Serializable{ private static final long serialVersionUID = 1L; @PrimaryKey @Column private long _id; @ForeignKey(joinEntity=Pessoa.class,joinPrimaryKey="_id",deleteCascade=true) @Column private long idPessoa; @Column private String tipo; @Column private String contato; public long get_id() { return _id; } public void set_id(long _id) { this._id = _id; } public long getIdPessoa() { return idPessoa; } public void setIdPessoa(long idPessoa) { this.idPessoa = idPessoa; } public String getContato() { return contato; } public void setContato(String contato) { this.contato = contato; } public String getTipo() { return tipo; } public void setTipo(String tipo) { this.tipo = tipo; } }