Em JpaRepository
@Query("select l.tipo_registro from LivroEntity l where l.nome =:nome")
String findFirstByLivroPorNome(String nome);
Em JpaRepository
@Query("select l.tipo_registro from LivroEntity l where l.nome =:nome")
String findFirstByLivroPorNome(String nome);