package br.org.frameworkdemoiselle.duasbases.domain; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Bookmark implements Serializable { private static final long serialVersionUID = 1L; /* * If you are using Glassfish then remove the strategy attribute */ @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column private String description; @Column private String link; public Bookmark() { super(); } public Bookmark(String description, String link) { this.description = description; this.link = link; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getLink() { return link; } public void setLink(String link) { this.link = link; } }