
org.phoenix.model.ScenarioBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phoenix_webdriver Show documentation
Show all versions of phoenix_webdriver Show documentation
update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge
package org.phoenix.model;
import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
@Entity
@Table(name="t_web_scenario")
@BatchSize(size=30)
public class ScenarioBean {
private int id;
private String scenarioName;
private String remark;
private Date createDate;
private int userId;
private Set caseBeans;
public ScenarioBean() {
// TODO Auto-generated constructor stub
}
public ScenarioBean(String scenarioName, String remark, Date createDate, Integer userId) {
super();
this.scenarioName = scenarioName;
this.remark = remark;
this.createDate = createDate;
this.userId = userId;
}
@Id
@GeneratedValue
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@OneToMany(mappedBy="scenarioBean",fetch=FetchType.EAGER)
@LazyCollection(LazyCollectionOption.FALSE)
@Fetch(FetchMode.SUBSELECT)
public Set getCaseBeans() {
return caseBeans;
}
public void setCaseBeans(Set caseBeans) {
this.caseBeans = caseBeans;
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
@Column(unique=true,nullable=false)
public String getScenarioName() {
return scenarioName;
}
public void setScenarioName(String scenarioName) {
this.scenarioName = scenarioName;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name="create_date",insertable=true)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy