2 Replies Latest reply on Nov 12, 2002 12:21 PM by jboynes

    eager-load-group and primary key?

    erikture

      Hello!

      I am trying to get better performance in my system using load-groups.

      I have a CMP bean that I fetch from the database using the method findByName(String name). Name is just an attribute in the bean. This finder returns a local object. Then when I user the getId() method (the primary key) on it all attributes in the lazy-load group is loaded. As far as I know you can not specify the primary key field to be part of a eager-load-group.

      How do I get the primary key value without loading the rest of my attributes?

      /Erik