Skip to content

Commit

Permalink
Merge pull request #7 from sakibul-munna/testing-ci-build-workflow
Browse files Browse the repository at this point in the history
Testing ci build workflow
  • Loading branch information
sakibul-munna authored Dec 19, 2023
2 parents 82c2dc3 + e814c13 commit eddc5c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions back-end/src/main/java/com/example/customer/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Customer {
@SequenceGenerator(
name = "customer_id_seq",
sequenceName = "customer_id_seq",
allocationSize= 1
allocationSize = 1
)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "customer_id_seq")
private Long id;
Expand Down Expand Up @@ -80,7 +80,6 @@ public Customer(String name, String email, int age) {
}

public Customer() {

}

@Override
Expand All @@ -98,7 +97,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Customer customer = (Customer) o;
return age == customer.age &&
return Objects.equals(age, customer.age) &&
id.equals(customer.id) &&
name.equals(customer.name) &&
email.equals(customer.email);
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server:

spring:
datasource:
url: jdbc:postgresql://localhost:5432/amigosecode
url: jdbc:postgresql://localhost:5432/block_craft
username: root
password: root
jpa:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
networks:
- db
restart: unless-stopped

demo-one:
container_name: demo-one
image: 170042060/demo-one
Expand Down

0 comments on commit eddc5c4

Please sign in to comment.