3
Hello, I have the following problem, follow an example:
I have an entity Banda which has as attribute a list of generos List<Generos> generos, Generos is an ENUM with the following values: ALTERNATIVE_ROCK("Alternative Rock"), CLASSIC_ROCK("Classic Rock"), HARD_ROCK("Hard Rock"), HEAVY_METAL("Heavy Metal"),PROGRESSIVE_ROCK("Progressive Rock");
I’m trying to create a method that returns a List<Banda> passing as parameter a list of ENUM List<Generos> using HQL... type
public List<Banda> retornaBandasPorGenero(List<Generos> generos); but without success, what is the best way to resolve this?
Thanks @Jonathan Hudler!!! worked perfectly... had no knowledge of this method...
– Bruno Santana