`
myway84
  • 浏览: 203634 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
文章分类
社区版块
存档分类
最新评论

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;
}

  
   
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics