package com.shandian.bean;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
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 org.hibernate.annotations.GenericGenerator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Comtype entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "COMTYPE", schema = "COMPTERS")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" })
public class Comtype implements java.io.Serializable {
// Fields
private int typeId;
private String type;
private Set<Computer> computersForVideocard = new HashSet<Computer>(0);
private Set<Computer> computersForCup = new HashSet<Computer>(0);
private Set<Computer> computersForDisplay = new HashSet<Computer>(0);
private Set<Computer> computersForMemory = new HashSet<Computer>(0);
private Set<Computer> computersForHdd = new HashSet<Computer>(0);
private Set<Peizhi> peizhis = new HashSet<Peizhi>(0);
// Constructors
/** default constructor */
public Comtype() {
}
/** full constructor */
public Comtype(String type, Set<Computer> computersForVideocard, Set<Computer> computersForCup,
Set<Computer> computersForDisplay, Set<Computer> computersForMemory, Set<Computer> computersForHdd,
Set<Peizhi> peizhis) {
this.type = type;
this.computersForVideocard = computersForVideocard;
this.computersForCup = computersForCup;
this.computersForDisplay = computersForDisplay;
this.computersForMemory = computersForMemory;
this.computersForHdd = computersForHdd;
this.peizhis = peizhis;
}
// Property accessors
@GenericGenerator(name = "generator", strategy = "increment")
@Id
@GeneratedValue(generator = "generator")
@Column(name = "TYPE_ID", unique = true, nullable = false, precision = 22, scale = 0)
public int getTypeId() {
return this.typeId;
}
public void setTypeId(int typeId) {
this.typeId = typeId;
}
@Column(name = "TYPE", length = 50)
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtypeByVideocard")
public Set<Computer> getComputersForVideocard() {
return this.computersForVideocard;
}
public void setComputersForVideocard(Set<Computer> computersForVideocard) {
this.computersForVideocard = computersForVideocard;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtypeByCup")
public Set<Computer> getComputersForCup() {
return this.computersForCup;
}
public void setComputersForCup(Set<Computer> computersForCup) {
this.computersForCup = computersForCup;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtypeByDisplay")
public Set<Computer> getComputersForDisplay() {
return this.computersForDisplay;
}
public void setComputersForDisplay(Set<Computer> computersForDisplay) {
this.computersForDisplay = computersForDisplay;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtypeByMemory")
public Set<Computer> getComputersForMemory() {
return this.computersForMemory;
}
public void setComputersForMemory(Set<Computer> computersForMemory) {
this.computersForMemory = computersForMemory;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtypeByHdd")
public Set<Computer> getComputersForHdd() {
return this.computersForHdd;
}
public void setComputersForHdd(Set<Computer> computersForHdd) {
this.computersForHdd = computersForHdd;
}
@JsonIgnore
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "comtype")
public Set<Peizhi> getPeizhis() {
return this.peizhis;
}
public void setPeizhis(Set<Peizhi> peizhis) {
this.peizhis = peizhis;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springmvc+maven+hibernate+ajax+分页
共72个文件
class:22个
java:20个
xml:8个
需积分: 9 40 下载量 17 浏览量
2017-03-14
22:41:33
上传
评论 1
收藏 1.92MB ZIP 举报
温馨提示
springmvc+maven+hibernate+ajax+分页多表下的整合demo
资源推荐
资源详情
资源评论
收起资源包目录
DemoConputer.zip (72个子文件)
DemoConputer
.project 1KB
pom.xml 4KB
target
test-classes
m2e-wtp
web-resources
META-INF
maven
DemoConputer
DemoConputer
pom.xml 4KB
pom.properties 237B
MANIFEST.MF 110B
classes
springmvc-servlet.xml 2KB
log4j.properties 1KB
com
shandian
bean
Computer.class 3KB
Comtype.class 5KB
Peizhi.class 2KB
dao
IComputerDao.class 446B
IPeizhiDao.class 535B
impl
ComputerDaoImpl$1.class 1KB
ComputerDaoImpl.class 3KB
PeiZhiDaoImpl$1.class 1KB
BaseDaoImpl.class 1KB
ComTyDaoImpl.class 2KB
PeiZhiDaoImpl.class 4KB
IComTyDao.class 244B
BaseDao.class 433B
action
PeiZhiAction.class 3KB
ComputerAction.class 4KB
service
IPeiZhiService.class 648B
IComputerService.class 557B
IComTyService.class 256B
impl
ComputerServiceImpl.class 2KB
PeiZhiServiceImpl.class 3KB
ComTyServiceImpl.class 2KB
util
Page.class 2KB
applicationContext.xml 3KB
.settings
.jsdtscope 639B
org.eclipse.wst.common.component 677B
org.eclipse.wst.validation.prefs 50B
org.eclipse.jdt.core.prefs 430B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.jsdt.ui.superType.name 6B
src
test
resources
java
main
resources
springmvc-servlet.xml 2KB
log4j.properties 1KB
applicationContext.xml 3KB
java
com
shandian
bean
Comtype.java 4KB
Computer.java 3KB
Peizhi.java 2KB
dao
IPeizhiDao.java 285B
IComTyDao.java 126B
IComputerDao.java 245B
impl
ComTyDaoImpl.java 750B
PeiZhiDaoImpl.java 2KB
BaseDaoImpl.java 765B
ComputerDaoImpl.java 2KB
BaseDao.java 195B
action
PeiZhiAction.java 3KB
ComputerAction.java 3KB
service
IComTyService.java 168B
IPeiZhiService.java 414B
impl
ComputerServiceImpl.java 1KB
PeiZhiServiceImpl.java 2KB
ComTyServiceImpl.java 925B
IComputerService.java 375B
util
Page.java 943B
webapp
WEB-INF
content
computer
comall.jsp 7KB
computerAdd.jsp 6KB
computerupdate.jsp 7KB
peizhi
addpeizhi.jsp 4KB
peizhiall.jsp 7KB
updatepeizhi.jsp 4KB
web.xml 2KB
lib
ojdbc5.jar 1.9MB
index.jsp 1KB
js
jquery-3.1.1.min.js 85KB
.classpath 2KB
共 72 条
- 1
资源评论
ArryLuo123
- 粉丝: 15
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功