All Downloads are FREE. Search and download functionalities are using the official Maven repository.

termo.data.ExperimentalData Maven / Gradle / Ivy

Go to download

Thermodynamics properties and equilibria calculations for chemical engineering.

There is a newer version: 3.5
Show newest version
package termo.data;

import java.util.Objects;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

/**
 *
 * @author Hugo
 */
@Entity
public class ExperimentalData extends Experimental {
//    private double temperature;
//    private double pressure;
//    @Id
//    @GeneratedValue(strategy = GenerationType.AUTO)
//    private Long id;
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    private ExperimentalDataList dataList;

    public ExperimentalData(){
        
    }

    public ExperimentalData( double temperature, double pressure) {
        super(temperature, pressure);
     
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + Objects.hashCode(this.dataList);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ExperimentalData other = (ExperimentalData) obj;
        if (!Objects.equals(this.dataList, other.dataList)) {
            return false;
        }
        return true;
    }
  
  
    /**
     * @return the dataList
     */
    public ExperimentalDataList getDataList() {
        return dataList;
    }

    /**
     * @param dataList the dataList to set
     */
    public void setDataList(ExperimentalDataList dataList) {
        this.dataList = dataList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy