Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance getCommentsRef(){ 返回注释REF; } 公共void setCommentsRef(集合注释sref){ this.commentsRef=commentsRef; } 公共集合getConnectorNodeRef(){ 返回conne_Performance_Jpa_Eclipselink_One To Many - Fatal编程技术网

Performance getCommentsRef(){ 返回注释REF; } 公共void setCommentsRef(集合注释sref){ this.commentsRef=commentsRef; } 公共集合getConnectorNodeRef(){ 返回conne

Performance getCommentsRef(){ 返回注释REF; } 公共void setCommentsRef(集合注释sref){ this.commentsRef=commentsRef; } 公共集合getConnectorNodeRef(){ 返回conne,performance,jpa,eclipselink,one-to-many,Performance,Jpa,Eclipselink,One To Many,getCommentsRef(){ 返回注释REF; } 公共void setCommentsRef(集合注释sref){ this.commentsRef=commentsRef; } 公共集合getConnectorNodeRef(){ 返回connectorNodesRef; } 公共无效SetConnectorNodeRef(集合ConnectorNodeRef){ this.connectorNodesRef=connectorNodesRef; } 公共集合getSignalizat

getCommentsRef(){ 返回注释REF; } 公共void setCommentsRef(集合注释sref){ this.commentsRef=commentsRef; } 公共集合getConnectorNodeRef(){ 返回connectorNodesRef; } 公共无效SetConnectorNodeRef(集合ConnectorNodeRef){ this.connectorNodesRef=connectorNodesRef; } 公共集合getSignalizationsRef(){ 返回信号SREF; } public void setSignalizationsRef(收集信号SREF){ this.signalizationsRef=signalizationsRef; } //_______________终端出口产品________________ 公共接驳机(){ propertySupport=新的PropertySchangeSupport(此); } 公共馈线(长id){ this.id=id; } 公用馈线(长id,字符串馈线编号){ this.id=id; this.feederNumber=feederNumber; } 公共长getId(){ 返回id; } 公共无效集合id(长id){ this.id=id; } 公共布尔getIsVip(){ 返回isVip; } public void setIsVip(布尔值isVip){ this.isVip=isVip; } 公共字符串getNote(){ 退货单; } 公共无效设置注释(字符串注释){ this.note=注释; } 公共字符串getFeederNumber(){ 返回进料器编号; } 公共无效setFeederNumber(字符串feederNumber){ this.feederNumber=feederNumber; } 公众假期(){ 回归周边; } 公共无效设置权限(整数权限){ this.periority=periority; } 公共整数getSceneX(){ 返回sceneX; } 公共void setSceneX(整数sceneX){ this.sceneX=sceneX; } 公共整数getSceneY(){ 返回sceneY; } 公共void setSceneY(整数场景){ this.sceneY=sceneY; } 公共集合fetchSecondaryStationCollection(){ 返回第二站集合; } 公共作废集合secondaryStationCollection(Collection secondaryStationCollection){ this.secondaryStationCollection=secondaryStationCollection; } 公共集合fetchPortCollection(){ 返回端口收集; } 公共集合getPortCollection(){ 返回端口收集; } public void setPortCollection(Collection portCollection){ this.portCollection=portCollection; } 公共集合fetchSourceStationContinuityCollection(){ 返回源站continuitycollection; } 公共作废setSourceStationContinuityCollection(收款站ContinuityCollection){ this.sourceStationContinuityCollection=stationContinuityCollection; } 公共集合fetchTargetStationContinuityCollection(){ 返回targetStationContinuityCollection; } public void setTargetStationContinuityCollection(收款站ContinuityCollection 1){ this.targetStationContinuityCollection=StationContinuityCollection 1; } 公共集合fetchAlarmedFeederCollection(){ 返回报警馈线采集; } 公共无效设置alarmedFeederCollection(集合alarmedFeederCollection){ this.alarmedFeederCollection=alarmedFeederCollection; } 公共集合fetchCommentCollection(){ 回收; } 公共void setCommentCollection(集合commentCollection){ this.commentCollection=commentCollection; } 公共集合fetchFeederLoadingCollection(){ 返回馈线加载采集; } 公共void setFeederLoadingCollection(集合feederLoadingCollection){ this.feederLoadingCollection=feederLoadingCollection; } 公共集合fetchConnectorNodeCollection(){ 返回connectorNodeCollection; } public void setConnectorNodeCollection(集合connectorNodeCollection){ this.connectorNodeCollection=connectorNodeCollection; } 公共集合fetchSignalizationCollection(){ 返回信号采集; } public void setSignalizationCollection(Collection signalizationCollection){ this.signalizationCollection=signalizationCollection; } 公共长getPrimaryStationId(){ 如果(primaryStationId!=null){ 返回primaryStationId.getId(); } 返回0; } 公共主站fetchPrimaryStation(){ 返回primaryStationId; } 公共无效setPrimaryStationId(primaryStationId){ this.primaryStationId=primaryStationId; } 公共集合fetchLinkCollection(){ 返回链接收集; } 公共void setLinkCollection(集合linkCollection){ this.linkCollection=linkCollection; } public void addPropertyChangeListener(PropertyChangeListener侦听器){ propertySupport.addPropertyChangeListener(listener); } public void removePropertyChangeListener(PropertyChangeListener侦听器){ propertySupport.removePropertyChangeListener(侦听器); } 公共日期getSynchronizationDate(){ 返回同步日期; } 公共无效设置同步日期(日期同步日期){ this.synchronizationDate=同步日期; } 公共日期getModificationDate(){ 返回修改日期; } 公共无效设置修改日期(日期修改日期){ this.modificationDate=modificationDate; } 公共布尔值ISISSSynchronized(){ 返回同步; } public void setIsSynchronized(布尔值isSynchronized){ this.isSynchronized=isSynchronized; } @凌驾 公共int hashCode(){ int hash=0; hash+=(id!=null?id.hashCode():0); 返回散列; } @凌驾 公共布尔等于(对象){ //TODO:警告-此方法在这种情况下不起作用
/**
 *
 * @author Houssem
 */
@Entity
@Table(name = "t_feeder")
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Feeder.findAll", query = "SELECT f FROM Feeder f"),
    @NamedQuery(name = "Feeder.findById", query = "SELECT f FROM Feeder f WHERE f.id = :id"),
    @NamedQuery(name = "Feeder.findByIsVip", query = "SELECT f FROM Feeder f WHERE f.isVip = :isVip"),
    @NamedQuery(name = "Feeder.findByFeederNumber", query = "SELECT f FROM Feeder f WHERE f.feederNumber = :feederNumber"),
    @NamedQuery(name = "Feeder.findByPeriority", query = "SELECT f FROM Feeder f WHERE f.periority = :periority"),
    @NamedQuery(name = "Feeder.findBySceneX", query = "SELECT f FROM Feeder f WHERE f.sceneX = :sceneX"),
    @NamedQuery(name = "Feeder.findByPrimaryStation", query = "SELECT f FROM Feeder f WHERE f.primaryStationId = :ps"),
    @NamedQuery(name = "Feeder.findByPsAndNumber", query = "SELECT f FROM Feeder f WHERE f.primaryStationId = :ps AND f.feederNumber = :number"),
    @NamedQuery(name = "Feeder.findBySceneY", query = "SELECT f FROM Feeder f WHERE f.sceneY = :sceneY")})
public class Feeder implements Serializable {

    private static final long serialVersionUID = 1L;
    public static final String FIND_BY_NUMBER = "Feeder.findByFeederNumber";
    public static final String FIND_BY_PS = "Feeder.findByPrimaryStation";
    public static final String FIND_BY_PS_AND_NUMBER = "Feeder.findByPsAndNumber";

    transient private PropertyChangeSupport propertySupport;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Column(name = "is_vip")
    private boolean isVip;
    @Lob
    @Column(name = "note", length = 65535)
    private String note;
    @Basic(optional = false)
    @Column(name = "feederNumber")
    private String feederNumber;
    @Column(name = "periority")
    private Integer periority;
    @Column(name = "scene_x")
    private Integer sceneX;
    @Column(name = "scene_y")
    private Integer sceneY;
    @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, fetch = FetchType.LAZY, mappedBy = "feederId")
    private Collection<SecondaryStation> secondaryStationCollection;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "feederId")
    private Collection<Port> portCollection;
    @OneToMany(cascade = CascadeType.REMOVE, mappedBy = "feederId", fetch = FetchType.LAZY)
    private Collection<StationContinuity> sourceStationContinuityCollection;
    @OneToMany(cascade = CascadeType.REMOVE, mappedBy = "linkToFeederId", fetch = FetchType.LAZY)
    private Collection<StationContinuity> targetStationContinuityCollection;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "feederId", fetch = FetchType.LAZY)
    private Collection<AlarmedFeeder> alarmedFeederCollection;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "feederId", fetch = FetchType.LAZY)
    private Collection<Comment> commentCollection;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "feederId", fetch = FetchType.LAZY)
    private Collection<FeederLoading> feederLoadingCollection;
    @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, mappedBy = "feederId", fetch = FetchType.LAZY)
    private Collection<ConnectorNode> connectorNodeCollection;
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "feederId")
    private Collection<Signalization> signalizationCollection;
    @JoinColumn(name = "primaryStationId", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private PrimaryStation primaryStationId;
    @OneToMany(mappedBy = "feederId")
    private Collection<Link> linkCollection;
    @Column(name = "date_synchronization")
    @Temporal(TemporalType.TIMESTAMP)
    private Date synchronizationDate;
    @Column(name = "date_modification")
    @Temporal(TemporalType.TIMESTAMP)
    private Date modificationDate;
    @Column(name = "synchronized")
    private boolean isSynchronized;

    //_______________ Export List Ref objects ________________
    transient private Collection<SecondaryStation> secondaryStationsRef;
    transient private Collection<StationContinuity> sourceStationContinuitysRef;
    transient private Collection<StationContinuity> targetStationContinuitysRef;
    transient private Collection<Comment> commentsRef;
    transient private Collection<ConnectorNode> connectorNodesRef;
    transient private Collection<Signalization> signalizationsRef;
    transient private Collection<EquipmentFileItem> equipmentFileItemsRef;
    //Les port c'est automatique, puis avec get tjrs

    //Getters & Setters - used only to add references, these objects are not added to DB
    public Collection<EquipmentFileItem> getEquipmentFileItemsRef() {
        return equipmentFileItemsRef;
    }

    public void setEquipmentFileItemsRef(Collection<EquipmentFileItem> equipmentFileItemsRef) {
        this.equipmentFileItemsRef = equipmentFileItemsRef;
    }

    public Collection<SecondaryStation> getSecondaryStationsRef() {
        return secondaryStationsRef;
    }

    public void setSecondaryStationsRef(Collection<SecondaryStation> secondaryStationCollection) {
        this.secondaryStationsRef = secondaryStationCollection;
    }

    public Collection<StationContinuity> getSourceStationContinuitiesRef() {
        return sourceStationContinuitysRef;
    }

    public void setSourceStationContinuitiesRef(Collection<StationContinuity> sourceStationContinuitysRef) {
        this.sourceStationContinuitysRef = sourceStationContinuitysRef;
    }

    public Collection<StationContinuity> getTargetStationContinuitiesRef() {
        return targetStationContinuitysRef;
    }

    public void setTargetStationContinuitiesRef(Collection<StationContinuity> targetStationContinuitysRef) {
        this.targetStationContinuitysRef = targetStationContinuitysRef;
    }

    public Collection<Comment> getCommentsRef() {
        return commentsRef;
    }

    public void setCommentsRef(Collection<Comment> commentsRef) {
        this.commentsRef = commentsRef;
    }

    public Collection<ConnectorNode> getConnectorNodesRef() {
        return connectorNodesRef;
    }

    public void setConnectorNodesRef(Collection<ConnectorNode> connectorNodesRef) {
        this.connectorNodesRef = connectorNodesRef;
    }

    public Collection<Signalization> getSignalizationsRef() {
        return signalizationsRef;
    }

    public void setSignalizationsRef(Collection<Signalization> signalizationsRef) {
        this.signalizationsRef = signalizationsRef;
    }

    //_______________ End Export Stuff________________
    public Feeder() {
        propertySupport = new PropertyChangeSupport(this);
    }

    public Feeder(Long id) {
        this.id = id;
    }

    public Feeder(Long id, String feederNumber) {
        this.id = id;
        this.feederNumber = feederNumber;
    }

    public Long getId() {
        return id;
    }

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

    public boolean getIsVip() {
        return isVip;
    }

    public void setIsVip(boolean isVip) {
        this.isVip = isVip;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getFeederNumber() {
        return feederNumber;
    }

    public void setFeederNumber(String feederNumber) {
        this.feederNumber = feederNumber;
    }

    public Integer getPeriority() {
        return periority;
    }

    public void setPeriority(Integer periority) {
        this.periority = periority;
    }

    public Integer getSceneX() {
        return sceneX;
    }

    public void setSceneX(Integer sceneX) {
        this.sceneX = sceneX;
    }

    public Integer getSceneY() {
        return sceneY;
    }

    public void setSceneY(Integer sceneY) {
        this.sceneY = sceneY;
    }

    public Collection<SecondaryStation> fetchSecondaryStationCollection() {
        return secondaryStationCollection;
    }

    public void setSecondaryStationCollection(Collection<SecondaryStation> secondaryStationCollection) {
        this.secondaryStationCollection = secondaryStationCollection;
    }

    public Collection<Port> fetchPortCollection() {
        return portCollection;
    }

    public Collection<Port> getPortCollection() {
        return portCollection;
    }

    public void setPortCollection(Collection<Port> portCollection) {
        this.portCollection = portCollection;
    }

    public Collection<StationContinuity> fetchSourceStationContinuityCollection() {
        return sourceStationContinuityCollection;
    }

    public void setSourceStationContinuityCollection(Collection<StationContinuity> stationContinuityCollection) {
        this.sourceStationContinuityCollection = stationContinuityCollection;
    }

    public Collection<StationContinuity> fetchTargetStationContinuityCollection() {
        return targetStationContinuityCollection;
    }

    public void setTargetStationContinuityCollection(Collection<StationContinuity> stationContinuityCollection1) {
        this.targetStationContinuityCollection = stationContinuityCollection1;
    }

    public Collection<AlarmedFeeder> fetchAlarmedFeederCollection() {
        return alarmedFeederCollection;
    }

    public void setAlarmedFeederCollection(Collection<AlarmedFeeder> alarmedFeederCollection) {
        this.alarmedFeederCollection = alarmedFeederCollection;
    }

    public Collection<Comment> fetchCommentCollection() {
        return commentCollection;
    }

    public void setCommentCollection(Collection<Comment> commentCollection) {
        this.commentCollection = commentCollection;
    }

    public Collection<FeederLoading> fetchFeederLoadingCollection() {
        return feederLoadingCollection;
    }

    public void setFeederLoadingCollection(Collection<FeederLoading> feederLoadingCollection) {
        this.feederLoadingCollection = feederLoadingCollection;
    }

    public Collection<ConnectorNode> fetchConnectorNodeCollection() {
        return connectorNodeCollection;
    }

    public void setConnectorNodeCollection(Collection<ConnectorNode> connectorNodeCollection) {
        this.connectorNodeCollection = connectorNodeCollection;
    }

    public Collection<Signalization> fetchSignalizationCollection() {
        return signalizationCollection;
    }

    public void setSignalizationCollection(Collection<Signalization> signalizationCollection) {
        this.signalizationCollection = signalizationCollection;
    }

    public long getPrimaryStationId() {
        if (primaryStationId != null) {
            return primaryStationId.getId();
        }
        return 0;
    }

    public PrimaryStation fetchPrimaryStation() {
        return primaryStationId;
    }

    public void setPrimaryStationId(PrimaryStation primaryStationId) {
        this.primaryStationId = primaryStationId;
    }

    public Collection<Link> fetchLinkCollection() {
        return linkCollection;
    }

    public void setLinkCollection(Collection<Link> linkCollection) {
        this.linkCollection = linkCollection;
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.removePropertyChangeListener(listener);
    }

    public Date getSynchronizationDate() {
        return synchronizationDate;
    }

    public void setSynchronizationDate(Date synchronizationDate) {
        this.synchronizationDate = synchronizationDate;
    }

    public Date getModificationDate() {
        return modificationDate;
    }

    public void setModificationDate(Date modificationDate) {
        this.modificationDate = modificationDate;
    }

    public boolean isIsSynchronized() {
        return isSynchronized;
    }

    public void setIsSynchronized(boolean isSynchronized) {
        this.isSynchronized = isSynchronized;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Feeder)) {
            return false;
        }
        Feeder other = (Feeder) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Feeder[ number=" + this.feederNumber + " ]";
    }

}