@Override
    @SuppressWarnings("unchecked")
    public List<PetType> findPetTypes() {
        return this.em.createQuery("SELECT ptype FROM PetType ptype ORDER BY ptype.name").getResultList();
    }
JPA implementation of the {@link PetRepository} interface.

@author Mike Keith
@author Rod Johnson
@author Sam Brannen
@author Michael Isvy
@since 22.4.2006
src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java