等待寻觅 2017-09-14 09:14 采纳率: 0%
浏览 839
已结题

calss怎么更改?求大神帮忙!

package com.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_allnetwork")
public class AllNetwork
{
@Id
@GeneratedValue
private Integer id;
@Column(nullable=false, columnDefinition="INT default 0")
private int isDelete;
private String client;
private String clientPhone;
private String clientAddress;
private String clientIndustry;
private String signTime;
private String startTime;
private String overTime;
private Date createDate;
private String des;
@OneToOne
private User introducer;
@OneToOne
private User user;
@OneToMany(mappedBy="allNetwork", cascade={javax.persistence.CascadeType.REFRESH, javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST})
private List jobLogs = new ArrayList();
private Integer type;
private String conclusion;

public String toDesString()
{
String s = "";
s = s + "客户:" + getClient();
s = s + ", 客户电话:" + getClientPhone();
s = s + ", 签单时间:" + getSignTime();
s = s + ", 开始时间:" + getStartTime();
s = s + ", 到期时间:" + getOverTime();
s = s + ", 行业:" + getClientIndustry();
s = s + ", 客户地址:" + getClientAddress();
s = s + ", 签单人员:" + getIntroducer().getName();
s = s + ", 技术人员:" + getUser().getName();
s = s + ", 任务描述:" + getDes().replaceAll("<[^>]*>", "_");
s = s + ", 结论:" + getDes().replaceAll("<[^>]*>", "_");
return s;
}

public String toTitleString()
{
String s = "全网通";
s = s + ", 客户:" + getClient();
s = s + " 行业:" + getClientIndustry();
return s;
}

public Integer getId()
{
return this.id;
}

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

public int getIsDelete()
{
return this.isDelete;
}

public void setIsDelete(int isDelete)
{
this.isDelete = isDelete;
}

public Date getCreateDate()
{
return this.createDate;
}

public void setCreateDate(Date createDate)
{
this.createDate = createDate;
}

public String getDes()
{
return this.des;
}

public void setDes(String des)
{
this.des = des;
}

public User getIntroducer()
{
return this.introducer;
}

public void setIntroducer(User introducer)
{
this.introducer = introducer;
}

public User getUser()
{
return this.user;
}

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

public List getJobLogs()
{
return this.jobLogs;
}

public void setJobLogs(List jobLogs)
{
this.jobLogs = jobLogs;
}

public Integer getType()
{
return this.type;
}

public void setType(Integer type)
{
this.type = type;
}

public String getConclusion()
{
return this.conclusion;
}

public void setConclusion(String conclusion)
{
this.conclusion = conclusion;
}

public String getClient()
{
return this.client;
}

public void setClient(String client)
{
this.client = client;
}

public String getClientPhone()
{
return this.clientPhone;
}

public void setClientPhone(String clientPhone)
{
this.clientPhone = clientPhone;
}

public String getClientIndustry()
{
return this.clientIndustry;
}

public void setClientIndustry(String clientIndustry)
{
this.clientIndustry = clientIndustry;
}

public String getSignTime()
{
return this.signTime;
}

public void setSignTime(String signTime)
{
this.signTime = signTime;
}

public String getOverTime()
{
return this.overTime;
}

public void setOverTime(String overTime)
{
this.overTime = overTime;
}

public String getClientAddress()
{
return this.clientAddress;
}

public void setClientAddress(String clientAddress)
{
this.clientAddress = clientAddress;
}

public String getStartTime()
{
return this.startTime;
}

public void setStartTime(String startTime)
{
this.startTime = startTime;
}
}
这个是用反向编辑打开的,但是怎么编辑?

  • 写回答

4条回答

  • 鼠晓 博客专家认证 2017-09-14 09:16
    关注

    这个是jpa的实体类??

    感觉好像是,,,题主想要怎么编辑?

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类