package pl.edu.pw.elka.pik.issueTracker.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

import static javax.persistence.GenerationType.IDENTITY;
/**
 * Created by lucas on 27.04.14.
 */
@Entity
public class Project implements Serializable {
    private Integer id;
    private String name;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ID")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "NAME", unique = true, nullable = false, length = 40)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}

@@ -282,16 +282,48 @@
 nce.Id;%0A
+import javax.persistence.Table;%0A
 import j
@@ -450,16 +450,83 @@
 @Entity%0A
+@Table(name=%22t_project%22)%0A@DynamicInsert(true)%0A@DynamicUpdate(true)%0A
 public c

Entity2