Skip to content

Commit

Permalink
fix: graph lab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnogueira committed Oct 5, 2023
1 parent 5ac088b commit b85ef72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

package expert.os.labs.persistence.persistence;


import jakarta.nosql.Column;
import jakarta.nosql.Entity;
import jakarta.nosql.Id;

import java.util.Objects;


@Entity
public class Person {

Expand Down Expand Up @@ -54,7 +52,7 @@ public Long getAge() {
Person() {
}

Person(String name, Long age, String occupation, Double salary) {
public Person(String name, Long age, String occupation, Double salary) {
this.name = name;
this.age = age;
this.salary = salary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* You may elect to redistribute this code under either of these licenses.
*/

package expert.os.labs.persistence.persistence;

public class PersonBuilder {
private Long id;
Expand Down Expand Up @@ -43,6 +43,6 @@ public PersonBuilder salary(Double salary) {
}

public Person build() {
return new Person(id, name, age, occupation, salary);
return new Person(name, age, occupation, salary);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package expert.os.labs.persistence.persistence;


import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.eclipse.jnosql.mapping.graph.GraphTemplate;
Expand Down
5 changes: 2 additions & 3 deletions docs/extra-labs/graph-lab-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ Try to, first implement, and later, see the solution!
public Person() {
}

public Person(Long id, String name, Long age, String occupation, Double salary) {
this.id = id;
public Person(String name, Long age, String occupation, Double salary) {
this.name = name;
this.age = age;
this.occupation = occupation;
Expand Down Expand Up @@ -110,7 +109,7 @@ Try to, first implement, and later, see the solution!
}

public Person build() {
return new Person(id, name, age, occupation, salary);
return new Person(name, age, occupation, salary);
}
}
```
Expand Down

0 comments on commit b85ef72

Please sign in to comment.