| | |
| | | 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.JoinTable;
|
| | | import javax.persistence.ManyToMany;
|
| | | import javax.persistence.Table;
|
| | |
|
| | | import org.hibernate.annotations.Cascade;
|
| | | import org.hibernate.annotations.Fetch;
|
| | | import org.hibernate.annotations.FetchMode;
|
| | |
|
| | | /**
|
| | | * 系统配置参数
|
| | |
| | | private long id;
|
| | | @ManyToMany(fetch = FetchType.EAGER)
|
| | | @JoinTable(name="yeshi_ec_system_systemconfig",joinColumns=@JoinColumn(name="scid",referencedColumnName="id"),inverseJoinColumns=@JoinColumn(name="sid",referencedColumnName="id"))
|
| | | private Set<System> systems=new HashSet<System>();
|
| | | private Set<BusinessSystem> systems=new HashSet<BusinessSystem>();
|
| | | @Column(name = "`key`", length = 50)
|
| | | private String key;
|
| | | @Column(name = "`value`", length = 1024)
|
| | |
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public Set<System> getSystems() {
|
| | | public Set<BusinessSystem> getSystems() {
|
| | | return systems;
|
| | | }
|
| | |
|
| | | public void setSystems(Set<System> systems) {
|
| | | public void setSystems(Set<BusinessSystem> systems) {
|
| | | this.systems = systems;
|
| | | }
|
| | |
|