0 Replies Latest reply on Jul 27, 2007 3:32 AM by sucheta chakraborty

    Lazyload of Map using Hibernate Annotations only.

    sucheta chakraborty Newbie


      I have a problem with Lazyload of Map objects of Java using Hibernate Annotations only?

      My piece of code -

      @OneToOne(fetch = FetchType.LAZY)
      @MapKey(columns = { @Column(name = "locale", nullable = false)})
      private Map values;

      Instead of @OneToOne, I also tried with

      But Unable to lazy load the map.

      Moreover the mapping file used in Hibernate are automatically generated. I can't write them explicitly.