package org.chorem.merohc.bean;

import org.chorem.merohc.entities.InvoiceCategory;

public class InvoiceCategoryDTO {

    protected String id;
    protected String name;

    public InvoiceCategoryDTO() {}

    public InvoiceCategoryDTO (InvoiceCategory category) {
        this.id = category.getTopiaId();
        this.name = category.getName();
    }

    public String getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

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

@@ -78,16 +78,46 @@
 egory;%0A%0A
+import java.io.Serializable;%0A%0A
 public c
@@ -140,16 +140,40 @@
 goryDTO 
+implements Serializable 
 %7B%0A%0A    p

Make InvoiceCategoryDTO serializable