Commit b17bede5 authored by mathieu's avatar mathieu

Remove Lombok to simplify Dev-Op

parent 14cc95f4
......@@ -4,11 +4,6 @@ package models.IED;
* Created by Sebastien on 24/07/2017.
*/
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.HashMap;
......@@ -17,9 +12,33 @@ public class BIMUniformatClassification {
public static final BIMUniformatClassification EMPTY_UNIFORMAT = new BIMUniformatClassification("","",-1);
private static HashMap<String,BIMUniformatClassification> mapUniformat;
@Getter @Setter(AccessLevel.PRIVATE) private String key;
@Getter @Setter(AccessLevel.PRIVATE) private String name;
@Getter @Setter(AccessLevel.PRIVATE) private int rank;
private String key;
private String name;
private int rank;
public String getKey() {
return key;
}
private void setKey(String key) {
this.key = key;
}
public String getName() {
return name;
}
private void setName(String name) {
this.name = name;
}
public int getRank() {
return rank;
}
private void setRank(int rank) {
this.rank = rank;
}
private BIMUniformatClassification(String key, String name, int rank) {
this.key = key;
......
......@@ -21,9 +21,6 @@
*--------------------------*/
package models.LCA;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
......@@ -31,7 +28,6 @@ import javax.validation.constraints.NotNull;
* Created by mathieu on 8/23/2016.
*/
@Entity
@Data
@Table(name="tbl_ALMaterial")
public class ALMaterial
{
......@@ -58,4 +54,60 @@ public class ALMaterial
@Column(name = "id", insertable = false, updatable = false)
private long idDatabase;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getUniformat() {
return uniformat;
}
public void setUniformat(String uniformat) {
this.uniformat = uniformat;
}
public String getPattern() {
return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
public String getProcessUUID() {
return processUUID;
}
public void setProcessUUID(String processUUID) {
this.processUUID = processUUID;
}
public double getRatio() {
return ratio;
}
public void setRatio(double ratio) {
this.ratio = ratio;
}
public LCADatabase getLcaDatabase() {
return lcaDatabase;
}
public void setLcaDatabase(LCADatabase lcaDatabase) {
this.lcaDatabase = lcaDatabase;
}
public long getIdDatabase() {
return idDatabase;
}
public void setIdDatabase(long idDatabase) {
this.idDatabase = idDatabase;
}
}
......@@ -21,9 +21,6 @@
*--------------------------*/
package models.LCA;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
......@@ -31,7 +28,6 @@ import javax.validation.constraints.NotNull;
* Created by mathieu on 8/23/2016.
*/
@Entity
@Data
@Table(name="tbl_ALObjecttype")
public class ALObjectType
{
......@@ -39,6 +35,54 @@ public class ALObjectType
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getUniformat() {
return uniformat;
}
public void setUniformat(String uniformat) {
this.uniformat = uniformat;
}
public String getPattern() {
return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
public String getProcessUUID() {
return processUUID;
}
public void setProcessUUID(String processUUID) {
this.processUUID = processUUID;
}
public LCADatabase getLcaDatabase() {
return lcaDatabase;
}
public void setLcaDatabase(LCADatabase lcaDatabase) {
this.lcaDatabase = lcaDatabase;
}
public long getIdDatabase() {
return idDatabase;
}
public void setIdDatabase(long idDatabase) {
this.idDatabase = idDatabase;
}
@Column(name = "uniformat")
public String uniformat;
......
......@@ -23,8 +23,6 @@ package models.LCA;
import javax.persistence.*;
import lombok.Data;
import org.openlca.core.model.Category;
import org.openlca.core.model.ModelType;
......@@ -33,7 +31,6 @@ import java.io.Serializable;
/**
* Created by mathieu on 8/23/2016.
*/
@Data
@Entity
@Table(name="tbl_BIMCategories")
public class BIMCategory
......@@ -46,6 +43,54 @@ public class BIMCategory
@JoinColumn(nullable = false)
private BIMModel model;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public BIMModel getModel() {
return model;
}
public void setModel(BIMModel model) {
this.model = model;
}
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public long getIdCategory() {
return idCategory;
}
public void setIdCategory(long idCategory) {
this.idCategory = idCategory;
}
public ModelType getModelType() {
return modelType;
}
public void setModelType(ModelType modelType) {
this.modelType = modelType;
}
public BIMEntity getBimEntity() {
return bimEntity;
}
public void setBimEntity(BIMEntity bimEntity) {
this.bimEntity = bimEntity;
}
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(nullable = false)
private Category category;
......
......@@ -21,10 +21,6 @@
*--------------------------*/
package models.LCA;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.EnumType;
......@@ -52,9 +48,25 @@ public class BIMEntity
this(bimEntity.bimKey,bimEntity.bimEntityType);
}
@Getter @Setter private String bimKey;
public String getBimKey() {
return bimKey;
}
public void setBimKey(String bimKey) {
this.bimKey = bimKey;
}
public BIMEntityType getBimEntityType() {
return bimEntityType;
}
public void setBimEntityType(BIMEntityType bimEntityType) {
this.bimEntityType = bimEntityType;
}
private String bimKey;
@Enumerated(EnumType.STRING)
@Getter @Setter private BIMEntityType bimEntityType;
private BIMEntityType bimEntityType;
}
......@@ -21,18 +21,14 @@
*--------------------------*/
package models.LCA;
import lombok.Data;
import org.openlca.core.model.Exchange;
import javax.persistence.*;
import java.io.Serializable;
/**
* Created by mathieu on 8/23/2016.
*/
@Entity
@Data
@Table(name="tbl_BIMExchanges")
public class BIMExchange
{
......@@ -51,6 +47,46 @@ public class BIMExchange
@Column(name = "exchange_id", insertable = false, updatable = false)
private long idExchange;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public BIMModel getModel() {
return model;
}
public void setModel(BIMModel model) {
this.model = model;
}
public Exchange getExchange() {
return exchange;
}
public void setExchange(Exchange exchange) {
this.exchange = exchange;
}
public long getIdExchange() {
return idExchange;
}
public void setIdExchange(long idExchange) {
this.idExchange = idExchange;
}
public BIMEntity getBimEntity() {
return bimEntity;
}
public void setBimEntity(BIMEntity bimEntity) {
this.bimEntity = bimEntity;
}
@Embedded
private BIMEntity bimEntity;
......
......@@ -21,18 +21,14 @@
*--------------------------*/
package models.LCA;
import lombok.Data;
import org.openlca.core.model.Flow;
import javax.persistence.*;
import java.io.Serializable;
/**
* Created by mathieu on 8/23/2016.
*/
@Entity
@Data
@Table(name="tbl_BIMFlows")
public class BIMFlow
{
......@@ -51,6 +47,46 @@ public class BIMFlow
@Column(name = "flow_id", insertable = false, updatable = false)
private long idFlow;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public BIMModel getModel() {
return model;
}
public void setModel(BIMModel model) {
this.model = model;
}
public Flow getFlow() {
return flow;
}
public void setFlow(Flow flow) {
this.flow = flow;
}
public long getIdFlow() {
return idFlow;
}
public void setIdFlow(long idFlow) {
this.idFlow = idFlow;
}
public BIMEntity getBimEntity() {
return bimEntity;
}
public void setBimEntity(BIMEntity bimEntity) {
this.bimEntity = bimEntity;
}
@Embedded
private BIMEntity bimEntity;
......
......@@ -23,12 +23,10 @@ package models.LCA;
import javax.persistence.*;
import lombok.Data;
import org.openlca.core.model.Flow;
import org.openlca.core.model.Process;
import play.data.format.Formats;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -37,7 +35,6 @@ import java.util.List;
* Created by mathieu on 8/23/2016.
*/
@Entity
@Data
@Table(name="tbl_BIMModels")
public class BIMModel
{
......@@ -45,6 +42,94 @@ public class BIMModel
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreationDate() {
return creationDate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public Process getRootProcess() {
return rootProcess;
}
public void setRootProcess(Process rootProcess) {
this.rootProcess = rootProcess;
}
public long getIdRootProcess() {
return idRootProcess;
}
public void setIdRootProcess(long idRootProcess) {
this.idRootProcess = idRootProcess;
}
public Flow getRootFlow() {
return rootFlow;
}
public void setRootFlow(Flow rootFlow) {
this.rootFlow = rootFlow;
}
public long getIdRootFlow() {
return idRootFlow;
}
public void setIdRootFlow(long idRootFlow) {
this.idRootFlow = idRootFlow;
}
public List<BIMProcess> getProcesses() {
return processes;
}
public void setProcesses(List<BIMProcess> processes) {
this.processes = processes;
}
public List<BIMFlow> getFlows() {
return flows;
}
public void setFlows(List<BIMFlow> flows) {
this.flows = flows;
}
public List<BIMExchange> getExchanges() {
return exchanges;
}
public void setExchanges(List<BIMExchange> exchanges) {
this.exchanges = exchanges;
}
public List<BIMCategory> getCategories() {
return categories;
}
public void setCategories(List<BIMCategory> categories) {
this.categories = categories;
}
@Column(length = 255)
private String name;
......
......@@ -23,9 +23,6 @@ package models.LCA;
import javax.persistence.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Formula;
import org.openlca.core.model.Process;
......@@ -43,7 +40,6 @@ import java.io.Serializable;
"where bp.model_id=:modelId";*/
@Entity
@Data
@Table(name="tbl_BIMProcesses")
public class BIMProcess
{
......@@ -62,6 +58,46 @@ public class BIMProcess
@Column(name = "process_id", insertable = false, updatable = false)
private long idProcess;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public BIMModel getModel() {
return model;
}
public void setModel(BIMModel model) {
this.model = model;
}
public Process getProcess() {
return process;
}
public void setProcess(Process process) {
this.process = process;
}
public long getIdProcess() {
return idProcess;
}
public void setIdProcess(long idProcess) {
this.idProcess = idProcess;
}
public BIMEntity getBimEntity() {
return bimEntity;
}
public void setBimEntity(BIMEntity bimEntity) {
this.bimEntity = bimEntity;
}
@Embedded
private BIMEntity bimEntity;
......
package models.LCA;
import lombok.Data;
import org.openlca.core.model.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
/**
* Created by arasivaneswaran on 2017-08-08.
*/
@Entity
@Data
@Table(name = "tbl_exchanges_history")
public class ExchangeHistory {
@Id
......@@ -77,6 +72,165 @@ public class ExchangeHistory {
@Column(name = "description")
public String description;
public long getRevision() {
return revision;
}
public void setRevision(long revision) {
this.revision = revision;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public ActionType getActionType() {
return actionType;
}
public void setActionType(ActionType actionType) {
this.actionType = actionType;
}
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public boolean isAvoidedProduct() {
return avoidedProduct;
}