#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.domain;

import org.synyx.hades.domain.auditing.AbstractAuditable;

import org.synyx.minos.core.domain.User;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;


@Entity
public class Item extends AbstractAuditable<User, Long> {

    private static final long serialVersionUID = -8172200297371920477L;

    private String description;

    @Enumerated(EnumType.STRING)
    private Status status = Status.NEW;

    protected Item() {
    }


    public Item(String description) {

        this.description = description;
    }

    public String getDescription() {

        return description;
    }


    public void setDescription(String description) {

        this.description = description;
    }


    public void setStatus(Status status) {

        this.status = status;
    }


    public Status getStatus() {

        return status;
    }
}

@@ -319,254 +319,1024 @@
 ;%0A%0A%0A
-@Entity%0Apublic class Item extends AbstractAuditable%3CUser, Long%3E %7B%0A%0A    private static final long serialVersionUID = -8172200297371920477L;%0A%0A    private String description;%0A%0A    @Enumerated(EnumType.STRING)%0A    private Status status = Status.NEW;%0A
+/*%0A * This entity is a very simple example with already lot of functionality built in. It makes use of Minos builtin%0A * auditing support by extending AbstractAuditable. This enables the framework to automatically  add the current user%0A * and date of change to modified entities on save.%0A */%0A@Entity%0Apublic class Item extends AbstractAuditable%3CUser, Long%3E %7B%0A%0A    private static final long serialVersionUID = -8172200297371920477L;%0A%0A    private String description;%0A%0A    /*%0A     * Enums in entities should always be annotated this way. The default is to save the enum in an integer column in%0A     * the database. A string based column is more robust against changing enums and the definition order of their%0A     * allowed values.%0A     */%0A    @Enumerated(EnumType.STRING)%0A    private Status status = Status.NEW;%0A%0A    /*%0A     * JPA/Hibernate needs a default constructor to be present. To hide it from client code, the constructor can be%0A     * declared protected, which leaves it yet accessible for JPA providers.%0A     */
 %0A   

add comments to Item entity bean (refs #236)