forked from Fireply/Enter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
使用 Hibernate Tools 根据数据库表生成实体类及其Hibernate映射文件
Showing
20 changed files
with
1,230 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Account generated by hbm2java | ||
*/ | ||
public class Account implements java.io.Serializable { | ||
|
||
private String id; | ||
private String wexinId; | ||
private String alipayId; | ||
private Set<User> users = new HashSet<User>(0); | ||
|
||
public Account() { | ||
} | ||
|
||
public Account(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Account(String id, String wexinId, String alipayId, Set<User> users) { | ||
this.id = id; | ||
this.wexinId = wexinId; | ||
this.alipayId = alipayId; | ||
this.users = users; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getWexinId() { | ||
return this.wexinId; | ||
} | ||
|
||
public void setWexinId(String wexinId) { | ||
this.wexinId = wexinId; | ||
} | ||
|
||
public String getAlipayId() { | ||
return this.alipayId; | ||
} | ||
|
||
public void setAlipayId(String alipayId) { | ||
this.alipayId = alipayId; | ||
} | ||
|
||
public Set<User> getUsers() { | ||
return this.users; | ||
} | ||
|
||
public void setUsers(Set<User> users) { | ||
this.users = users; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Category generated by hbm2java | ||
*/ | ||
public class Category implements java.io.Serializable { | ||
|
||
private String id; | ||
private String name; | ||
private Set<Production> productions = new HashSet<Production>(0); | ||
|
||
public Category() { | ||
} | ||
|
||
public Category(String id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
|
||
public Category(String id, String name, Set<Production> productions) { | ||
this.id = id; | ||
this.name = name; | ||
this.productions = productions; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public Set<Production> getProductions() { | ||
return this.productions; | ||
} | ||
|
||
public void setProductions(Set<Production> productions) { | ||
this.productions = productions; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* Commit generated by hbm2java | ||
*/ | ||
public class Commit implements java.io.Serializable { | ||
|
||
private String id; | ||
private News news; | ||
private User user; | ||
private String content; | ||
private Date createTime; | ||
|
||
public Commit() { | ||
} | ||
|
||
public Commit(String id, News news, String content, Date createTime) { | ||
this.id = id; | ||
this.news = news; | ||
this.content = content; | ||
this.createTime = createTime; | ||
} | ||
|
||
public Commit(String id, News news, User user, String content, Date createTime) { | ||
this.id = id; | ||
this.news = news; | ||
this.user = user; | ||
this.content = content; | ||
this.createTime = createTime; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public News getNews() { | ||
return this.news; | ||
} | ||
|
||
public void setNews(News news) { | ||
this.news = news; | ||
} | ||
|
||
public User getUser() { | ||
return this.user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public String getContent() { | ||
return this.content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return this.createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.Date; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* News generated by hbm2java | ||
*/ | ||
public class News implements java.io.Serializable { | ||
|
||
private String id; | ||
private User user; | ||
private String title; | ||
private String content; | ||
private Date createTime; | ||
private Set<Commit> commits = new HashSet<Commit>(0); | ||
|
||
public News() { | ||
} | ||
|
||
public News(String id, String title, String content, Date createTime) { | ||
this.id = id; | ||
this.title = title; | ||
this.content = content; | ||
this.createTime = createTime; | ||
} | ||
|
||
public News(String id, User user, String title, String content, Date createTime, Set<Commit> commits) { | ||
this.id = id; | ||
this.user = user; | ||
this.title = title; | ||
this.content = content; | ||
this.createTime = createTime; | ||
this.commits = commits; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public User getUser() { | ||
return this.user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public String getTitle() { | ||
return this.title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getContent() { | ||
return this.content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return this.createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public Set<Commit> getCommits() { | ||
return this.commits; | ||
} | ||
|
||
public void setCommits(Set<Commit> commits) { | ||
this.commits = commits; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* Order generated by hbm2java | ||
*/ | ||
public class Order implements java.io.Serializable { | ||
|
||
private String id; | ||
private Production production; | ||
private Proxy proxy; | ||
private User user; | ||
private String price; | ||
private Date createTime; | ||
private String qrcodeId; | ||
|
||
public Order() { | ||
} | ||
|
||
public Order(String id, String price, Date createTime) { | ||
this.id = id; | ||
this.price = price; | ||
this.createTime = createTime; | ||
} | ||
|
||
public Order(String id, Production production, Proxy proxy, User user, String price, Date createTime, | ||
String qrcodeId) { | ||
this.id = id; | ||
this.production = production; | ||
this.proxy = proxy; | ||
this.user = user; | ||
this.price = price; | ||
this.createTime = createTime; | ||
this.qrcodeId = qrcodeId; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Production getProduction() { | ||
return this.production; | ||
} | ||
|
||
public void setProduction(Production production) { | ||
this.production = production; | ||
} | ||
|
||
public Proxy getProxy() { | ||
return this.proxy; | ||
} | ||
|
||
public void setProxy(Proxy proxy) { | ||
this.proxy = proxy; | ||
} | ||
|
||
public User getUser() { | ||
return this.user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public String getPrice() { | ||
return this.price; | ||
} | ||
|
||
public void setPrice(String price) { | ||
this.price = price; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return this.createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public String getQrcodeId() { | ||
return this.qrcodeId; | ||
} | ||
|
||
public void setQrcodeId(String qrcodeId) { | ||
this.qrcodeId = qrcodeId; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Production generated by hbm2java | ||
*/ | ||
public class Production implements java.io.Serializable { | ||
|
||
private String id; | ||
private Category category; | ||
private String name; | ||
private String price; | ||
private String desc; | ||
private String thumb; | ||
private Set<ProductionGallery> productionGalleries = new HashSet<ProductionGallery>(0); | ||
private Set<Order> orders = new HashSet<Order>(0); | ||
|
||
public Production() { | ||
} | ||
|
||
public Production(String id, String name, String price, String thumb) { | ||
this.id = id; | ||
this.name = name; | ||
this.price = price; | ||
this.thumb = thumb; | ||
} | ||
|
||
public Production(String id, Category category, String name, String price, String desc, String thumb, | ||
Set<ProductionGallery> productionGalleries, Set<Order> orders) { | ||
this.id = id; | ||
this.category = category; | ||
this.name = name; | ||
this.price = price; | ||
this.desc = desc; | ||
this.thumb = thumb; | ||
this.productionGalleries = productionGalleries; | ||
this.orders = orders; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Category getCategory() { | ||
return this.category; | ||
} | ||
|
||
public void setCategory(Category category) { | ||
this.category = category; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getPrice() { | ||
return this.price; | ||
} | ||
|
||
public void setPrice(String price) { | ||
this.price = price; | ||
} | ||
|
||
public String getDesc() { | ||
return this.desc; | ||
} | ||
|
||
public void setDesc(String desc) { | ||
this.desc = desc; | ||
} | ||
|
||
public String getThumb() { | ||
return this.thumb; | ||
} | ||
|
||
public void setThumb(String thumb) { | ||
this.thumb = thumb; | ||
} | ||
|
||
public Set<ProductionGallery> getProductionGalleries() { | ||
return this.productionGalleries; | ||
} | ||
|
||
public void setProductionGalleries(Set<ProductionGallery> productionGalleries) { | ||
this.productionGalleries = productionGalleries; | ||
} | ||
|
||
public Set<Order> getOrders() { | ||
return this.orders; | ||
} | ||
|
||
public void setOrders(Set<Order> orders) { | ||
this.orders = orders; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
/** | ||
* ProductionGallery generated by hbm2java | ||
*/ | ||
public class ProductionGallery implements java.io.Serializable { | ||
|
||
private String id; | ||
private Production production; | ||
private String imageSrc; | ||
|
||
public ProductionGallery() { | ||
} | ||
|
||
public ProductionGallery(String id, Production production, String imageSrc) { | ||
this.id = id; | ||
this.production = production; | ||
this.imageSrc = imageSrc; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Production getProduction() { | ||
return this.production; | ||
} | ||
|
||
public void setProduction(Production production) { | ||
this.production = production; | ||
} | ||
|
||
public String getImageSrc() { | ||
return this.imageSrc; | ||
} | ||
|
||
public void setImageSrc(String imageSrc) { | ||
this.imageSrc = imageSrc; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Proxy generated by hbm2java | ||
*/ | ||
public class Proxy implements java.io.Serializable { | ||
|
||
private String id; | ||
private Qrcode qrcode; | ||
private User user; | ||
private String name; | ||
private boolean level; | ||
private String phone; | ||
private String address; | ||
private String proxyDesc; | ||
private Set<Order> orders = new HashSet<Order>(0); | ||
|
||
public Proxy() { | ||
} | ||
|
||
public Proxy(String id, User user, String name, boolean level, String phone, String address) { | ||
this.id = id; | ||
this.user = user; | ||
this.name = name; | ||
this.level = level; | ||
this.phone = phone; | ||
this.address = address; | ||
} | ||
|
||
public Proxy(String id, Qrcode qrcode, User user, String name, boolean level, String phone, String address, | ||
String proxyDesc, Set<Order> orders) { | ||
this.id = id; | ||
this.qrcode = qrcode; | ||
this.user = user; | ||
this.name = name; | ||
this.level = level; | ||
this.phone = phone; | ||
this.address = address; | ||
this.proxyDesc = proxyDesc; | ||
this.orders = orders; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Qrcode getQrcode() { | ||
return this.qrcode; | ||
} | ||
|
||
public void setQrcode(Qrcode qrcode) { | ||
this.qrcode = qrcode; | ||
} | ||
|
||
public User getUser() { | ||
return this.user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public boolean isLevel() { | ||
return this.level; | ||
} | ||
|
||
public void setLevel(boolean level) { | ||
this.level = level; | ||
} | ||
|
||
public String getPhone() { | ||
return this.phone; | ||
} | ||
|
||
public void setPhone(String phone) { | ||
this.phone = phone; | ||
} | ||
|
||
public String getAddress() { | ||
return this.address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public String getProxyDesc() { | ||
return this.proxyDesc; | ||
} | ||
|
||
public void setProxyDesc(String proxyDesc) { | ||
this.proxyDesc = proxyDesc; | ||
} | ||
|
||
public Set<Order> getOrders() { | ||
return this.orders; | ||
} | ||
|
||
public void setOrders(Set<Order> orders) { | ||
this.orders = orders; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Qrcode generated by hbm2java | ||
*/ | ||
public class Qrcode implements java.io.Serializable { | ||
|
||
private String id; | ||
private String info; | ||
private String imageSrc; | ||
private Set<User> users = new HashSet<User>(0); | ||
private Set<Proxy> proxies = new HashSet<Proxy>(0); | ||
|
||
public Qrcode() { | ||
} | ||
|
||
public Qrcode(String id, String info, String imageSrc) { | ||
this.id = id; | ||
this.info = info; | ||
this.imageSrc = imageSrc; | ||
} | ||
|
||
public Qrcode(String id, String info, String imageSrc, Set<User> users, Set<Proxy> proxies) { | ||
this.id = id; | ||
this.info = info; | ||
this.imageSrc = imageSrc; | ||
this.users = users; | ||
this.proxies = proxies; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getInfo() { | ||
return this.info; | ||
} | ||
|
||
public void setInfo(String info) { | ||
this.info = info; | ||
} | ||
|
||
public String getImageSrc() { | ||
return this.imageSrc; | ||
} | ||
|
||
public void setImageSrc(String imageSrc) { | ||
this.imageSrc = imageSrc; | ||
} | ||
|
||
public Set<User> getUsers() { | ||
return this.users; | ||
} | ||
|
||
public void setUsers(Set<User> users) { | ||
this.users = users; | ||
} | ||
|
||
public Set<Proxy> getProxies() { | ||
return this.proxies; | ||
} | ||
|
||
public void setProxies(Set<Proxy> proxies) { | ||
this.proxies = proxies; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
package org.fireply.entity; | ||
// Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* User generated by hbm2java | ||
*/ | ||
public class User implements java.io.Serializable { | ||
|
||
private String id; | ||
private Account account; | ||
private Qrcode qrcode; | ||
private String password; | ||
private String name; | ||
private Boolean sex; | ||
private String nativePlace; | ||
private String birthday; | ||
private String mobile; | ||
private String email; | ||
private String userDesc; | ||
private String headThumb; | ||
private Set<News> newses = new HashSet<News>(0); | ||
private Set<Proxy> proxies = new HashSet<Proxy>(0); | ||
private Set<Order> orders = new HashSet<Order>(0); | ||
private Set<Commit> commits = new HashSet<Commit>(0); | ||
|
||
public User() { | ||
} | ||
|
||
public User(String id) { | ||
this.id = id; | ||
} | ||
|
||
public User(String id, Account account, Qrcode qrcode, String password, String name, Boolean sex, | ||
String nativePlace, String birthday, String mobile, String email, String userDesc, String headThumb, | ||
Set<News> newses, Set<Proxy> proxies, Set<Order> orders, Set<Commit> commits) { | ||
this.id = id; | ||
this.account = account; | ||
this.qrcode = qrcode; | ||
this.password = password; | ||
this.name = name; | ||
this.sex = sex; | ||
this.nativePlace = nativePlace; | ||
this.birthday = birthday; | ||
this.mobile = mobile; | ||
this.email = email; | ||
this.userDesc = userDesc; | ||
this.headThumb = headThumb; | ||
this.newses = newses; | ||
this.proxies = proxies; | ||
this.orders = orders; | ||
this.commits = commits; | ||
} | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Account getAccount() { | ||
return this.account; | ||
} | ||
|
||
public void setAccount(Account account) { | ||
this.account = account; | ||
} | ||
|
||
public Qrcode getQrcode() { | ||
return this.qrcode; | ||
} | ||
|
||
public void setQrcode(Qrcode qrcode) { | ||
this.qrcode = qrcode; | ||
} | ||
|
||
public String getPassword() { | ||
return this.password; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public Boolean getSex() { | ||
return this.sex; | ||
} | ||
|
||
public void setSex(Boolean sex) { | ||
this.sex = sex; | ||
} | ||
|
||
public String getNativePlace() { | ||
return this.nativePlace; | ||
} | ||
|
||
public void setNativePlace(String nativePlace) { | ||
this.nativePlace = nativePlace; | ||
} | ||
|
||
public String getBirthday() { | ||
return this.birthday; | ||
} | ||
|
||
public void setBirthday(String birthday) { | ||
this.birthday = birthday; | ||
} | ||
|
||
public String getMobile() { | ||
return this.mobile; | ||
} | ||
|
||
public void setMobile(String mobile) { | ||
this.mobile = mobile; | ||
} | ||
|
||
public String getEmail() { | ||
return this.email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getUserDesc() { | ||
return this.userDesc; | ||
} | ||
|
||
public void setUserDesc(String userDesc) { | ||
this.userDesc = userDesc; | ||
} | ||
|
||
public String getHeadThumb() { | ||
return this.headThumb; | ||
} | ||
|
||
public void setHeadThumb(String headThumb) { | ||
this.headThumb = headThumb; | ||
} | ||
|
||
public Set<News> getNewses() { | ||
return this.newses; | ||
} | ||
|
||
public void setNewses(Set<News> newses) { | ||
this.newses = newses; | ||
} | ||
|
||
public Set<Proxy> getProxies() { | ||
return this.proxies; | ||
} | ||
|
||
public void setProxies(Set<Proxy> proxies) { | ||
this.proxies = proxies; | ||
} | ||
|
||
public Set<Order> getOrders() { | ||
return this.orders; | ||
} | ||
|
||
public void setOrders(Set<Order> orders) { | ||
this.orders = orders; | ||
} | ||
|
||
public Set<Commit> getCommits() { | ||
return this.commits; | ||
} | ||
|
||
public void setCommits(Set<Commit> commits) { | ||
this.commits = commits; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Account" table="account" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<property name="wexinId" type="string"> | ||
<column name="wexin_id" length="20" /> | ||
</property> | ||
<property name="alipayId" type="string"> | ||
<column name="alipay_id" length="32" /> | ||
</property> | ||
<set name="users" table="user" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="account_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.User" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Category" table="category" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="5" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<property name="name" type="string"> | ||
<column name="name" length="9" not-null="true" /> | ||
</property> | ||
<set name="productions" table="production" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="category_id" length="5" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Production" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Commit" table="commit" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="news" class="org.fireply.entity.News" fetch="select"> | ||
<column name="news_id" length="20" not-null="true" /> | ||
</many-to-one> | ||
<many-to-one name="user" class="org.fireply.entity.User" fetch="select"> | ||
<column name="user_id" length="20" /> | ||
</many-to-one> | ||
<property name="content" type="string"> | ||
<column name="content" length="40" not-null="true" /> | ||
</property> | ||
<property name="createTime" type="timestamp"> | ||
<column name="create_time" length="19" not-null="true" /> | ||
</property> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.News" table="news" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="user" class="org.fireply.entity.User" fetch="select"> | ||
<column name="user_id" length="20" /> | ||
</many-to-one> | ||
<property name="title" type="string"> | ||
<column name="title" length="32" not-null="true" /> | ||
</property> | ||
<property name="content" type="string"> | ||
<column name="content" length="65535" not-null="true" /> | ||
</property> | ||
<property name="createTime" type="timestamp"> | ||
<column name="create_time" length="19" not-null="true" /> | ||
</property> | ||
<set name="commits" table="commit" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="news_id" length="20" not-null="true" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Commit" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Order" table="order" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="production" class="org.fireply.entity.Production" fetch="select"> | ||
<column name="production_id" length="20" /> | ||
</many-to-one> | ||
<many-to-one name="proxy" class="org.fireply.entity.Proxy" fetch="select"> | ||
<column name="proxy_id" length="20" /> | ||
</many-to-one> | ||
<many-to-one name="user" class="org.fireply.entity.User" fetch="select"> | ||
<column name="user_id" length="20" /> | ||
</many-to-one> | ||
<property name="price" type="string"> | ||
<column name="price" length="9" not-null="true" /> | ||
</property> | ||
<property name="createTime" type="timestamp"> | ||
<column name="create_time" length="19" not-null="true" /> | ||
</property> | ||
<property name="qrcodeId" type="string"> | ||
<column name="qrcode_id" length="20" /> | ||
</property> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Production" table="production" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="category" class="org.fireply.entity.Category" fetch="select"> | ||
<column name="category_id" length="5" /> | ||
</many-to-one> | ||
<property name="name" type="string"> | ||
<column name="name" length="32" not-null="true" /> | ||
</property> | ||
<property name="price" type="string"> | ||
<column name="price" length="9" not-null="true" /> | ||
</property> | ||
<property name="desc" type="string"> | ||
<column name="desc" length="120" /> | ||
</property> | ||
<property name="thumb" type="string"> | ||
<column name="thumb" length="20" not-null="true" /> | ||
</property> | ||
<set name="productionGalleries" table="production_gallery" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="production_id" length="20" not-null="true" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.ProductionGallery" /> | ||
</set> | ||
<set name="orders" table="order" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="production_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Order" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.ProductionGallery" table="production_gallery" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="production" class="org.fireply.entity.Production" fetch="select"> | ||
<column name="production_id" length="20" not-null="true" /> | ||
</many-to-one> | ||
<property name="imageSrc" type="string"> | ||
<column name="image_src" length="32" not-null="true" /> | ||
</property> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Proxy" table="proxy" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="qrcode" class="org.fireply.entity.Qrcode" fetch="select"> | ||
<column name="qrcode_id" length="20" /> | ||
</many-to-one> | ||
<many-to-one name="user" class="org.fireply.entity.User" fetch="select"> | ||
<column name="user_id" length="20" not-null="true" /> | ||
</many-to-one> | ||
<property name="name" type="string"> | ||
<column name="name" length="18" not-null="true" /> | ||
</property> | ||
<property name="level" type="boolean"> | ||
<column name="level" not-null="true" /> | ||
</property> | ||
<property name="phone" type="string"> | ||
<column name="phone" length="16" not-null="true" /> | ||
</property> | ||
<property name="address" type="string"> | ||
<column name="address" length="32" not-null="true" /> | ||
</property> | ||
<property name="proxyDesc" type="string"> | ||
<column name="proxy_desc" length="40" /> | ||
</property> | ||
<set name="orders" table="order" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="proxy_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Order" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.Qrcode" table="qrcode" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<property name="info" type="string"> | ||
<column name="info" length="64" not-null="true" /> | ||
</property> | ||
<property name="imageSrc" type="string"> | ||
<column name="image_src" length="32" not-null="true" /> | ||
</property> | ||
<set name="users" table="user" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="qrcode_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.User" /> | ||
</set> | ||
<set name="proxies" table="proxy" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="qrcode_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Proxy" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" | ||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> | ||
<!-- Generated 2016-5-16 23:27:45 by Hibernate Tools 4.3.1.Final --> | ||
<hibernate-mapping> | ||
<class name="org.fireply.entity.User" table="user" catalog="enter" optimistic-lock="version"> | ||
<id name="id" type="string"> | ||
<column name="id" length="20" /> | ||
<generator class="assigned" /> | ||
</id> | ||
<many-to-one name="account" class="org.fireply.entity.Account" fetch="select"> | ||
<column name="account_id" length="20" /> | ||
</many-to-one> | ||
<many-to-one name="qrcode" class="org.fireply.entity.Qrcode" fetch="select"> | ||
<column name="qrcode_id" length="20" /> | ||
</many-to-one> | ||
<property name="password" type="string"> | ||
<column name="password" length="32" /> | ||
</property> | ||
<property name="name" type="string"> | ||
<column name="name" length="18" /> | ||
</property> | ||
<property name="sex" type="java.lang.Boolean"> | ||
<column name="sex" /> | ||
</property> | ||
<property name="nativePlace" type="string"> | ||
<column name="native_place" length="20" /> | ||
</property> | ||
<property name="birthday" type="string"> | ||
<column name="birthday" length="10" /> | ||
</property> | ||
<property name="mobile" type="string"> | ||
<column name="mobile" length="16" /> | ||
</property> | ||
<property name="email" type="string"> | ||
<column name="email" length="32" /> | ||
</property> | ||
<property name="userDesc" type="string"> | ||
<column name="user_desc" length="40" /> | ||
</property> | ||
<property name="headThumb" type="string"> | ||
<column name="head_thumb" length="20" /> | ||
</property> | ||
<set name="newses" table="news" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="user_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.News" /> | ||
</set> | ||
<set name="proxies" table="proxy" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="user_id" length="20" not-null="true" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Proxy" /> | ||
</set> | ||
<set name="orders" table="order" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="user_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Order" /> | ||
</set> | ||
<set name="commits" table="commit" inverse="true" lazy="true" fetch="select"> | ||
<key> | ||
<column name="user_id" length="20" /> | ||
</key> | ||
<one-to-many class="org.fireply.entity.Commit" /> | ||
</set> | ||
</class> | ||
</hibernate-mapping> |