Skip to content

Instantly share code, notes, and snippets.

@rominirani
Created January 12, 2014 09:39
Show Gist options
  • Save rominirani/8382691 to your computer and use it in GitHub Desktop.
Save rominirani/8382691 to your computer and use it in GitHub Desktop.
package com.mindstorm.famousquotes.entity;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Quote {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
Long id;
@Persistent
String author;
@Persistent
String message;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment