Skip to content

Commit

Permalink
docs: MongoDB with Panache fix multitenancy documentation in the test…
Browse files Browse the repository at this point in the history
…ing section

Removing `person1.status = Status.ALIVE;` and `person2.status = Status.ALIVE;`. Because for this example the Person class does not have a status attribute.

Transform Person attributes  `firstName` and  `lastName` to lowercase
  • Loading branch information
pedroh-pereira committed Feb 10, 2023
1 parent 6d70481 commit 3cb7449
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/src/main/asciidoc/mongodb-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1314,8 +1314,8 @@ import io.quarkus.mongodb.panache.common.MongoEntity;
public class Person extends PanacheMongoEntityBase {
@BsonId
public Long id;
public String firstName;
public String lastName;
public String firstname;
public String lastname;
}
----

Expand Down Expand Up @@ -1394,13 +1394,11 @@ public class PanacheMongoMultiTenancyTest {
person1.id = 1L;
person1.firstname = "Pedro";
person1.lastname = "Pereira";
person1.status = Status.ALIVE;
Person person2 = new Person();
person2.id = 2L;
person2.firstname = "Tibé";
person2.lastname = "Venâncio";
person2.status = Status.ALIVE;
String endpoint = "/persons";
Expand Down

0 comments on commit 3cb7449

Please sign in to comment.