package de.votian.services.entity;

import jakarta.persistence.*;

@Entity
@Table(name = "genericdatacontainer")
public class GenericDataContainer {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "gdc_id")
    private Long id;

    @Column(name = "gdc_obj_type")
    private String objectType;

    @Column(name = "gdc_obj_id")
    private Long objectId;

    @Column(name = "gdc_gen_fieldname")
    private String fieldName;

    @Column(name = "gdc_content")
    private String content;

    @Column(name = "gdc_context")
    private String context;

    public GenericDataContainer() {}

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getObjectType() { return objectType; }
    public void setObjectType(String objectType) { this.objectType = objectType; }
    public Long getObjectId() { return objectId; }
    public void setObjectId(Long objectId) { this.objectId = objectId; }
    public String getFieldName() { return fieldName; }
    public void setFieldName(String fieldName) { this.fieldName = fieldName; }
    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
    public String getContext() { return context; }
    public void setContext(String context) { this.context = context; }
}
