WorkLoadComment.java

package com.tradecloud.domain.workload;

import com.tradecloud.common.base.PersistenceBase;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "workload_comment")
@Access(AccessType.FIELD)
public class WorkLoadComment extends PersistenceBase implements Serializable {
    @ManyToOne(optional = false)
    @JoinColumn(name = "category_id", nullable = false)
    private WorkLoadCategory category;

    @Column(nullable = false)
    private String commentText;

    public WorkLoadCategory getCategory() {
        return category;
    }

    public void setCategory(WorkLoadCategory category) {
        this.category = category;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }
}