package eu.gaetan.grigis.mail.client;
import java.io.Serializable;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable
public class Mail implements Serializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
private String id;
@Persistent
private String subject;
@Persistent
private String from;
@Persistent String to;
@Persistent
private String content;
public Mail(){}
public Mail(String subject,String from,String to,String content)
{
this.setSubject(subject);
this.setFrom(from);
this.to =to;
this.setContent(content);
}
public void setFrom(String from) {
this.from = from;
}
public String getFrom() {
return from;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getSubject() {
return subject;
}
public void setContent(String content) {
this.content = content;
}
public String getContent() {
return content;
}
}