/* * Copyright (c) JForum Team. All rights reserved. * * The software in this package is published under the terms of the LGPL * license a copy of which has been included with this distribution in the * license.txt file. * * The JForum Project * http://www.jforum.net */ package net.jforum.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import br.com.caelum.vraptor.ioc.Component; import br.com.caelum.vraptor.ioc.PrototypeScoped; /** * @author Rafael Steil */ @Entity @Table(name = "jforum_words") @Component @PrototypeScoped public class BadWord { @Id @SequenceGenerator(name = "sequence", sequenceName = "jforum_words_seq") @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence") @Column(name = "word_id") private int id; @Column(name = "word") private String word; @Column(name = "replacement") private String replacement; public int getId() { return this.id; } public void setId(int id) { this.id = id; } public String getWord() { return this.word; } public void setWord(String word) { this.word = word; } public String getReplacement() { return this.replacement; } public void setReplacement(String replacement) { this.replacement = replacement; } }