/* * Hibernate OGM, Domain model persistence for NoSQL datastores * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.ogm.backendtck.perf; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.SequenceGenerator; /** * @author Emmanuel Bernard <emmanuel@hibernate.org> */ @Entity public class BlogEntry { private Long id; private String title; private Author author; private String content; private Blog blog; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "blog_seq") @SequenceGenerator(name = "blog_seq") public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } @ManyToOne public Author getAuthor() { return author; } public void setAuthor(Author author) { this.author = author; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @ManyToOne public Blog getBlog() { return blog; } public void setBlog(Blog blog) { this.blog = blog; } }