RemoteClientPoint

package com.huaweisymantec.rmc.core.domain;
import java.util.*;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
public class RemoteClientPoint {

private int id;

private String name;

private String location;

    private Set<Equipment> equipment=new HashSet<Equipment>();
    private User user=new User();
    @Id
    @GeneratedValue
public int getId() {
return id;
}

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


@OneToMany(mappedBy="remoteclientpoint",cascade={CascadeType.ALL})
public Set<Equipment> getEquipment() {
return equipment;
}

public void setEquipment(Set<Equipment> equipment) {
this.equipment = equipment;
}


@ManyToOne(cascade={CascadeType.ALL})
public User getUser() {
return user;
}

public void setUser(User user) {
this.user = user;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getLocation() {
return location;
}

public void setLocation(String location) {
this.location = location;
}

  
   
}

你可能感兴趣的:(client)