@SuppressWarnings("unchecked")
    @Override
    protected List<Class<? extends Annotation>> getAnnotations() {
        try {
            List<Class<? extends Annotation>> annotations = new ArrayList<Class<? extends Annotation>>(super.getAnnotations());
            for (String simpleName : Arrays.asList("Type", "Cascade", "LazyCollection", "OnDelete")) {
                annotations.add((Class<? extends Annotation>) Class.forName("org.hibernate.annotations." + simpleName));
            }
            return annotations;
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }
Configuration for {@link HibernateAnnotationProcessor}

@author tiwe
@see HibernateAnnotationProcessor
@see JPAConfiguration
querydsl-apt/src/main/java/com/querydsl/apt/hibernate/HibernateConfiguration.java