3 Replies Latest reply on Sep 18, 2007 7:37 PM by Humber

    Attach Entity

    Marcos Sousa Newbie

      Hello,

      I'm wanting to save attach file in DataBase. I used this annotation:

      @Basic(fetch=FetchType.LAZY)
      @Column(updatable=false)
      private byte[] content;


      This works fine, except one thing, the fetch strategy doesn't work. The attach content always select like EAGER fetch strategy.

      How can I lazy the content?

      Thanks,