Skip to content

Commit

Permalink
fix: ajuste atributo boolean ao usar postgres #64
Browse files Browse the repository at this point in the history
  • Loading branch information
tacianosilva committed Oct 6, 2022
1 parent c5f8424 commit d7798ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/br/ufrn/dct/apf/model/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Project implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date createdOn;

@Column(name = "isPrivate", columnDefinition = "BIT", length = 1)
@Column(name = "isPrivate")
@NotNull
private Boolean isPrivate;

Expand All @@ -61,7 +61,7 @@ public class Project implements Serializable {

@OneToMany(mappedBy = "project", targetEntity = DataFunction.class, orphanRemoval = true, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
private Set<DataFunction> dataFunctions = new HashSet<>();

@OneToMany(mappedBy = "project", targetEntity = TransactionFunction.class, orphanRemoval = true, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
private Set<TransactionFunction> transactions = new HashSet<>();

Expand Down Expand Up @@ -134,11 +134,11 @@ public Set<DataFunction> getDataFunctions() {
public void setDataFunctions(Set<DataFunction> dataFunctions) {
this.dataFunctions = dataFunctions;
}

public Set<TransactionFunction> getTransactionFunctions() {
return transactions;
}

public void setTransactionFunctions(Set<TransactionFunction> transactions) {
this.transactions = transactions;
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public boolean equals(Object obj) {
return other.name == null;
} else return name.equals(other.name);
}

@Override
public String toString() {
return "Project@" + this.id + "[" + this.name + "]";
Expand Down

0 comments on commit d7798ca

Please sign in to comment.