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

com.eurodyn.qlack.fuse.cm.model.NodeAttribute Maven / Gradle / Ivy

There is a newer version: 3.6.8
Show newest version
/*
 * 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy