package models;

import javax.persistence.*;

@Entity
@Table(name = "group_types")
public class GroupType {
    @Id
    @GeneratedValue
    @Column(name = "group_type_id")
    private long id;

    @Column
    private String type;

    public long getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}

@@ -10,16 +10,61 @@
 odels;%0A%0A
+import modules.preloader.DatabasePreloader;%0A%0A
 import j
@@ -83,16 +83,16 @@
 ence.*;%0A
-
 %0A@Entity
@@ -158,28 +158,8 @@
 @Id%0A
-    @GeneratedValue%0A
     
@@ -202,18 +202,20 @@
 private 
-lo
+Stri
 ng id;%0A%0A
@@ -263,18 +263,20 @@
  public 
-lo
+Stri
 ng getId
@@ -399,24 +399,24 @@
 ing type) %7B%0A
-
         this
@@ -434,11 +434,431 @@
 e;%0A    %7D
+%0A%0A    public GroupType() %7B%0A    %7D%0A%0A    public GroupType(String id, String type) %7B%0A        this.id = id;%0A        this.type = type;%0A    %7D%0A%0A    static %7B%0A        DatabasePreloader.addDefault((em -%3E %7B%0A            em.persist(new GroupType(%22selfGroup%22, %22Person Group%22));%0A            em.persist(new GroupType(%22conversation%22, %22Conversation%22));%0A            em.persist(new GroupType(%22social%22, %22Social group%22));%0A        %7D), 0);%0A    %7D
 %0A%7D%0A

Change GroupType.id to String, add default values