package org.bdgp.MMSlide.DB;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class Pool {
    @DatabaseField(generatedId=true, canBeNull=false)
    private int id;
    public Pool() { }
    public int getId() { return this.id; }
    public String getName() { return String.format("P%05d", this.id); }
}

@@ -223,16 +223,17 @@
 int id;%0A
+%0A
     publ
@@ -246,16 +246,71 @@
 l() %7B %7D%0A
+    public Pool(int id) %7B %0A        this.id = id;%0A    %7D%0A
     publ

add constructor for specifying pool id