@@ -0,0 +1,2756 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage application.entity.image;%0A%0Aimport common.entity.SuperEntity;%0Aimport common.log.ApplicationLogger;%0Aimport java.io.Serializable;%0Aimport java.util.Date;%0Aimport javax.enterprise.context.SessionScoped;%0Aimport javax.inject.Inject;%0Aimport javax.inject.Named;%0Aimport javax.persistence.Basic;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Lob;%0Aimport javax.persistence.TableGenerator;%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;%0Aimport javax.persistence.Transient;%0A%0A/**%0A *%0A * @author nobuyuki%0A */%0A@Named%0A//@ConversationScoped%0A@SessionScoped%0A@Entity%0Apublic class Photo extends SuperEntity implements Serializable %7B%0A    /**%0A     *%0A     */%0A    private static final long serialVersionUID=1L;%0A%0A    /**%0A     *%E3%80%80Logger%E3%82%92%E6%B3%A8%E5%85%A5%E3%81%97%E3%81%BE%E3%81%99%0A     */%0A    @Inject @Transient%0A    private transient ApplicationLogger logger;%0A%0A    /**%0A     *%0A     */%0A    @Id%0A    @GeneratedValue(strategy=GenerationType.TABLE,generator=%22photoGen%22)%0A    @TableGenerator(name=%22photoGen%22, %0A            table=%22SequenceNumber%22, %0A            pkColumnName=%22name%22, %0A            valueColumnName=%22number%22, %0A            pkColumnValue=%22photoId%22, %0A            allocationSize=1)%0A    private Long id;%0A%0A    /**%0A     *%0A     */%0A    @Lob%0A    @Basic(fetch=FetchType.EAGER)%0A    private byte%5B%5D content;%0A    %0A    /**%0A     *%0A     */%0A    @Temporal(TemporalType.TIMESTAMP)%0A    private Date updateDate;%0A%0A    /**%0A     *%0A     */%0A    @Temporal(TemporalType.TIMESTAMP)%0A    private Date registerDate;%0A%0A    /**%0A     *%0A     */%0A    @Override%0A    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    /**%0A     *%0A     */%0A    @Override%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    /**%0A     * @return the content%0A     */%0A    public byte%5B%5D getContent() %7B%0A        return content;%0A    %7D%0A%0A    /**%0A     * @param content the content to set%0A     */%0A    public void setContent(byte%5B%5D content) %7B%0A        this.content = content;%0A    %7D%0A    %0A    /**%0A     * @return the updateDate%0A     */%0A    @Override%0A    public Date getUpdateDate() %7B%0A        return updateDate;%0A    %7D%0A%0A    /**%0A     * @param updateDate the updateDate to set%0A     */%0A    @Override%0A    public void setUpdateDate(Date updateDate) %7B%0A        this.updateDate=updateDate;%0A    %7D%0A%0A    /**%0A     * @return the registDate%0A     */%0A    @Override%0A    public Date getRegisterDate() %7B%0A        return registerDate;%0A    %7D%0A%0A    /**%0A     * @param registDate the registDate to set%0A     */%0A    @Override%0A    public void setRegisterDate(Date registerDate) %7B%0A        this.registerDate=registerDate;%0A    %7D%0A%7D%0A

test commit Photo.java