6 Replies Latest reply on Mar 22, 2018 12:42 PM by arkadyz

    Wildfly 11 - lazy loading in hybernet




      EJB annotation OneToOne with LAZY fetch type doesn't work in Wildfly 11.


      We are trying following:


      @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "device")



      It doesn't help.


      In Wildfly 2.8.0 we solved this by using of org.hibernate.bytecode.internal.javassist.FieldHandled and org.hibernate.bytecode.internal.javassist.FieldHandler but these files are not supplied by Wildfly 11.


      Does anyone know how to switch on lazy loading ?


      Thanks in advance,