I want to search for a Java class using reflection with persistence unit. Now I'm using the search with the package name
Reflections reflections = new Reflections("com.entites");
Set<Class<? extends Object>> allClasses = reflections.getTypesAnnotatedWith(Entity.class);