com.eurodyn.qlack.fuse.cm.model.NodeAttribute Maven / Gradle / Ivy
/*
* Copyright 2014 EUROPEAN DYNAMICS SA
*
* Licensed under the EUPL, Version 1.1 only (the "License").
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package com.eurodyn.qlack.fuse.cm.model;
import com.eurodyn.qlack.common.model.QlackBaseModel;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Version;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Entity
@Table(name = "cm_node_attribute")
@Getter
@Setter
@NoArgsConstructor
public class NodeAttribute extends QlackBaseModel {
@Version
private long dbversion;
private String name;
private String value;
@ManyToOne
@JoinColumn(name = "node")
private Node node;
public NodeAttribute(String name, String value, Node node) {
this.name = name;
this.value = value;
this.node = node;
}
}