Index: rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java --- a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/service/HeroServiceTests.java (date 1664884871951) @@ -91,7 +91,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( tuple( @@ -148,7 +148,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( tuple( @@ -184,7 +184,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( DEFAULT_ID, @@ -251,7 +251,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( DEFAULT_ID, @@ -358,7 +358,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( DEFAULT_ID, @@ -480,7 +480,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( DEFAULT_ID, @@ -608,7 +608,7 @@ Hero::getOtherName, Hero::getLevel, Hero::getPicture, - Hero::getPowers + Hero::getPwers ) .containsExactly( DEFAULT_ID, @@ -691,7 +691,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); return hero; @@ -702,7 +702,7 @@ hero.setName(UPDATED_NAME); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); hero.setLevel(UPDATED_LEVEL); return hero; @@ -711,7 +711,7 @@ public static Hero createPartialUpdatedHero() { Hero hero = createDefaultHero(); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); return hero; } Index: rest-heroes/src/main/resources/templates/UIResource/index.html IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/main/resources/templates/UIResource/index.html b/rest-heroes/src/main/resources/templates/UIResource/index.html --- a/rest-heroes/src/main/resources/templates/UIResource/index.html (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/main/resources/templates/UIResource/index.html (date 1664884871937) @@ -130,7 +130,7 @@
- + Index: rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/Hero.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/Hero.java b/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/Hero.java --- a/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/Hero.java (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/main/java/io/quarkus/sample/superheroes/hero/Hero.java (date 1664884871934) @@ -31,8 +31,8 @@ private String picture; - @Column(columnDefinition = "TEXT") - private String powers; + @Column(name = "powers", columnDefinition = "TEXT") + private String pwers; public Long getId() { return this.id; @@ -74,12 +74,12 @@ this.picture = picture; } - public String getPowers() { - return this.powers; + public String getPwers() { + return this.pwers; } - public void setPowers(String powers) { - this.powers = powers; + public void setPwers(String powers) { + this.pwers = powers; } @Override @@ -90,7 +90,7 @@ ", otherName='" + this.otherName + '\'' + ", level=" + this.level + ", picture='" + this.picture + '\'' + - ", powers='" + this.powers + '\'' + + ", powers='" + this.pwers + '\'' + '}'; } Index: rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceIT.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceIT.java b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceIT.java --- a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceIT.java (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceIT.java (date 1664884871944) @@ -74,7 +74,7 @@ hero.setName(null); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(0); given() @@ -95,7 +95,7 @@ hero.setName(null); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_PICTURE); + hero.setPwers(UPDATED_PICTURE); hero.setLevel(0); given() @@ -116,7 +116,7 @@ hero.setName(null); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_PICTURE); + hero.setPwers(UPDATED_PICTURE); hero.setLevel(0); given() @@ -162,7 +162,7 @@ hero.setName(UPDATED_NAME); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); hero.setLevel(UPDATED_LEVEL); given() @@ -193,7 +193,7 @@ public void shouldNotPartiallyUpdateNotFoundItem() { Hero hero = new Hero(); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); given() .when() @@ -248,7 +248,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); String location = given() @@ -281,7 +281,7 @@ .body("otherName", is(DEFAULT_OTHER_NAME)) .body("level", is(DEFAULT_LEVEL)) .body("picture", is(DEFAULT_PICTURE)) - .body("powers", is(DEFAULT_POWERS)); + .body("pwers", is(DEFAULT_POWERS)); verifyNumberOfHeroes(NB_HEROES + 1); } @@ -302,7 +302,7 @@ hero.setName(UPDATED_NAME); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); hero.setLevel(UPDATED_LEVEL); given() @@ -327,7 +327,7 @@ public void shouldPartiallyUpdateAnItem() { Hero hero = new Hero(); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); given() .when() @@ -345,7 +345,7 @@ "otherName", is(UPDATED_OTHER_NAME), "level", is(UPDATED_LEVEL), "picture", is(DEFAULT_PICTURE), - "powers", is(DEFAULT_POWERS) + "pwers", is(DEFAULT_POWERS) ); get("/api/heroes") @@ -398,14 +398,14 @@ h1.setName(DEFAULT_NAME); h1.setOtherName(DEFAULT_OTHER_NAME); h1.setPicture(DEFAULT_PICTURE); - h1.setPowers(DEFAULT_POWERS); + h1.setPwers(DEFAULT_POWERS); h1.setLevel(DEFAULT_LEVEL); var h2 = new Hero(); h2.setName(UPDATED_NAME); h2.setOtherName(UPDATED_OTHER_NAME); h2.setPicture(UPDATED_PICTURE); - h2.setPowers(UPDATED_POWERS); + h2.setPwers(UPDATED_POWERS); h2.setLevel(UPDATED_LEVEL); given() @@ -438,12 +438,12 @@ "[0].name", is(DEFAULT_NAME), "[0].otherName", is(DEFAULT_OTHER_NAME), "[0].picture", is(DEFAULT_PICTURE), - "[0].powers", is(DEFAULT_POWERS), + "[0].pwers", is(DEFAULT_POWERS), "[0].level", is(DEFAULT_LEVEL), "[1].name", is(UPDATED_NAME), "[1].otherName", is(UPDATED_OTHER_NAME), "[1].picture", is(UPDATED_PICTURE), - "[1].powers", is(UPDATED_POWERS), + "[1].pwers", is(UPDATED_POWERS), "[1].level", is(UPDATED_LEVEL) ); } Index: rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java --- a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/repository/HeroRepositoryTests.java (date 1664884871941) @@ -42,7 +42,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); asserter.execute(this.heroRepository::deleteAll) @@ -73,7 +73,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); asserter.execute(this.heroRepository::deleteAll) @@ -105,7 +105,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); asserter.execute(this.heroRepository::deleteAll) Index: rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceTests.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceTests.java b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceTests.java --- a/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceTests.java (revision 196da87d3dea2422e702b4d0080d7ba15aa24559) +++ b/rest-heroes/src/test/java/io/quarkus/sample/superheroes/hero/rest/HeroResourceTests.java (date 1664884871947) @@ -94,7 +94,7 @@ "otherName", is(DEFAULT_OTHER_NAME), "level", is(DEFAULT_LEVEL), "picture", is(DEFAULT_PICTURE), - "powers", is(DEFAULT_POWERS) + "pwers", is(DEFAULT_POWERS) ); verify(this.heroService).findRandomHero(); @@ -107,7 +107,7 @@ hero.setName(null); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(0); given() @@ -155,7 +155,7 @@ hero.setName(null); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_PICTURE); + hero.setPwers(UPDATED_PICTURE); hero.setLevel(0); given() @@ -177,7 +177,7 @@ (h.getName() == null) && h.getOtherName().equals(UPDATED_OTHER_NAME) && h.getPicture().equals(UPDATED_PICTURE) && - h.getPowers().equals(UPDATED_POWERS) && + h.getPwers().equals(UPDATED_POWERS) && (h.getLevel() == 0); when(this.heroService.partialUpdateHero(argThat(heroMatcher))) @@ -231,7 +231,7 @@ "[0].otherName", is(DEFAULT_OTHER_NAME), "[0].level", is(DEFAULT_LEVEL), "[0].picture", is(DEFAULT_PICTURE), - "[0].powers", is(DEFAULT_POWERS) + "[0].pwers", is(DEFAULT_POWERS) ); verify(this.heroService).findAllHeroes(); @@ -271,7 +271,7 @@ "[0].otherName", is(DEFAULT_OTHER_NAME), "[0].level", is(DEFAULT_LEVEL), "[0].picture", is(DEFAULT_PICTURE), - "[0].powers", is(DEFAULT_POWERS) + "[0].pwers", is(DEFAULT_POWERS) ); verify(this.heroService).findAllHeroesHavingName(eq("name")); @@ -316,7 +316,7 @@ h.getName().equals(DEFAULT_NAME) && h.getOtherName().equals(DEFAULT_OTHER_NAME) && h.getPicture().equals(DEFAULT_PICTURE) && - h.getPowers().equals(DEFAULT_POWERS) && + h.getPwers().equals(DEFAULT_POWERS) && (h.getLevel() == DEFAULT_LEVEL); when(this.heroService.persistHero(argThat(heroMatcher))) @@ -326,7 +326,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); given() @@ -351,7 +351,7 @@ h.getName().equals(UPDATED_NAME) && h.getOtherName().equals(UPDATED_OTHER_NAME) && h.getPicture().equals(UPDATED_PICTURE) && - h.getPowers().equals(UPDATED_POWERS) && + h.getPwers().equals(UPDATED_POWERS) && (h.getLevel() == UPDATED_LEVEL); when(this.heroService.replaceHero(argThat(heroMatcher))) @@ -379,7 +379,7 @@ h.getName().equals(UPDATED_NAME) && h.getOtherName().equals(UPDATED_OTHER_NAME) && h.getPicture().equals(UPDATED_PICTURE) && - h.getPowers().equals(UPDATED_POWERS) && + h.getPwers().equals(UPDATED_POWERS) && (h.getLevel() == UPDATED_LEVEL); when(this.heroService.replaceHero(argThat(heroMatcher))) @@ -406,11 +406,11 @@ (h.getName() == null) && (h.getOtherName() == null) && h.getPicture().equals(UPDATED_PICTURE) && - h.getPowers().equals(UPDATED_POWERS) && + h.getPwers().equals(UPDATED_POWERS) && (h.getLevel() == null); var partialHero = new Hero(); - partialHero.setPowers(UPDATED_POWERS); + partialHero.setPwers(UPDATED_POWERS); partialHero.setPicture(UPDATED_PICTURE); when(this.heroService.partialUpdateHero(argThat(heroMatcher))) @@ -437,11 +437,11 @@ (h.getName() == null) && (h.getOtherName() == null) && h.getPicture().equals(UPDATED_PICTURE) && - h.getPowers().equals(UPDATED_POWERS) && + h.getPwers().equals(UPDATED_POWERS) && (h.getLevel() == null); var partialHero = new Hero(); - partialHero.setPowers(UPDATED_POWERS); + partialHero.setPwers(UPDATED_POWERS); partialHero.setPicture(UPDATED_PICTURE); when(this.heroService.partialUpdateHero(argThat(heroMatcher))) @@ -463,7 +463,7 @@ "otherName", is(DEFAULT_OTHER_NAME), "level", is(DEFAULT_LEVEL), "picture", is(UPDATED_PICTURE), - "powers", is(UPDATED_POWERS) + "pwers", is(UPDATED_POWERS) ); verify(this.heroService).partialUpdateHero(argThat(heroMatcher)); @@ -494,13 +494,13 @@ h.get(0).getName().equals(DEFAULT_NAME) && h.get(0).getOtherName().equals(DEFAULT_OTHER_NAME) && h.get(0).getPicture().equals(DEFAULT_PICTURE) && - h.get(0).getPowers().equals(DEFAULT_POWERS) && + h.get(0).getPwers().equals(DEFAULT_POWERS) && (h.get(0).getLevel() == DEFAULT_LEVEL) && (h.get(1).getId() == null) && h.get(1).getName().equals(UPDATED_NAME) && h.get(1).getOtherName().equals(UPDATED_OTHER_NAME) && h.get(1).getPicture().equals(UPDATED_PICTURE) && - h.get(1).getPowers().equals(UPDATED_POWERS) && + h.get(1).getPwers().equals(UPDATED_POWERS) && (h.get(1).getLevel() == UPDATED_LEVEL); when(this.heroService.replaceAllHeroes(argThat(heroesMatcher))) @@ -545,7 +545,7 @@ hero.setName(DEFAULT_NAME); hero.setOtherName(DEFAULT_OTHER_NAME); hero.setPicture(DEFAULT_PICTURE); - hero.setPowers(DEFAULT_POWERS); + hero.setPwers(DEFAULT_POWERS); hero.setLevel(DEFAULT_LEVEL); return hero; @@ -556,7 +556,7 @@ hero.setName(UPDATED_NAME); hero.setOtherName(UPDATED_OTHER_NAME); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); hero.setLevel(UPDATED_LEVEL); return hero; @@ -565,7 +565,7 @@ public static Hero createPartiallyUpdatedHero() { var hero = createDefaultHero(); hero.setPicture(UPDATED_PICTURE); - hero.setPowers(UPDATED_POWERS); + hero.setPwers(UPDATED_POWERS); return hero; }