All Downloads are FREE. Search and download functionalities are using the official Maven repository.

in.clouthink.daas.fss.mysql.model.FileObjectAttribute Maven / Gradle / Ivy

There is a newer version: 3.0.7
Show newest version
package in.clouthink.daas.fss.mysql.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author dz
 */
@Entity
@Table(name = "fss_file_object_attr")
public class FileObjectAttribute {

    @Id
    @Access(AccessType.PROPERTY)
    @GeneratedValue(generator = "uuid2")
    @GenericGenerator(name = "uuid2", strategy = "uuid2")
    @Column(name = "ID")
    private String id;

    @Basic
    @Column(name = "attr_key")
    private String key;

    @Basic
    @Column(name = "attr_value")
    private String value;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "file_object_id")
    private FileObject fileObject;

    public String getId() {
        return id;
    }

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

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public FileObject getFileObject() {
        return fileObject;
    }

    public void setFileObject(FileObject fileObject) {
        this.fileObject = fileObject;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy