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

    Wildfly 11 - lazy loading in hybernet

    Arkady Zelekman Newbie

      Hello,

       

      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")

      @LazyToOne(LazyToOneOption.NO_PROXY)

       

      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,

      Arkady.