Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2620 vikas 1
 
2
package in.shop2020.model;
3
 
4
import java.io.Serializable;
5
 
6
import javax.jdo.annotations.IdGeneratorStrategy;
7
import javax.jdo.annotations.IdentityType;
8
import javax.jdo.annotations.PersistenceCapable;
9
import javax.jdo.annotations.Persistent;
10
import javax.jdo.annotations.PrimaryKey;
11
 
12
@PersistenceCapable(identityType = IdentityType.APPLICATION)
13
public class Message implements Serializable {
14
 
15
    private static final long serialVersionUID = 1L;
16
 
17
    @PrimaryKey
18
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
19
    private Long id;
20
 
21
    @Persistent
22
	private String text;
23
 
24
    public Long getId() {
25
		return id;
26
	}
27
 
28
    public void setId(Long id) {
29
		this.id = id;
30
	}
31
 
32
	public String getText() {
33
		return text;
34
	}
35
 
36
	public void setText(String text) {
37
		this.text = text;
38
	}
39
}