@BatchSize and Build-time enhancer

Hi,

I’ve made one example that uses build-time enhancer and @BatchSize
@BatchSize does not work. It seems that it only works with runtime enhancer

Do I miss something ?

It should work just fine. Try reproducing this with a test case(https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java) and if it turns out to be a bug, please create an issue in the issue tracker(https://hibernate.atlassian.net).