I created a model called Group, which in turn should create a group of tables. As a result, the database evolves with errors, saying that the table name is a reserved word. Due to the fact that my model / table name is a reserved word, I would like to know if there is a way to save a table named group.
Here is an example of my group model (Play Framework 2.0):
@Entity public class Group extends Model { @Id private long id; @Required private String groupName; private static Model.Finder<Long,Group> find = new Model.Finder<Long,Group> (Long.class, Group.class); public Group() { } public Group(String groupName) { this.groupName = groupName; } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; } }
code>
Any help would be greatly appreciated!
source share