Skip to content

Test for the CheckPoint#10

Open
Poloof74 wants to merge 1 commit intoih-java-08-25:mainfrom
Poloof74:main
Open

Test for the CheckPoint#10
Poloof74 wants to merge 1 commit intoih-java-08-25:mainfrom
Poloof74:main

Conversation

@Poloof74
Copy link

No description provided.

public Hero getHeroByAlias(@PathVariable String alias) {
return selectHeroService.findByAlias(alias);
}
@GetMapping("/all")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to use /all

public List<Hero> findAll() {
return selectHeroService.findAll();
}
@PostMapping("/add")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to use /add

public List<Hero> addHero(@RequestBody Hero hero) {
return selectHeroService.addHero(hero);
}
@DeleteMapping("/delete/{id}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to use /delete

List<Hero> findByLevelLessThan(int level);
List<Hero> findByWeapon(String weapon);
List<Hero> findByIdIn(List<Long> ids);
Hero findByAlias(String alias);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing some native and jpql queries!

@Poloof74 Poloof74 closed this Oct 14, 2025
@Poloof74 Poloof74 reopened this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants