0 Replies Latest reply on Mar 9, 2003 10:09 AM by uric

    Problem with read-ahead settings for findByPrimaryKey


      When trying to configure the following read-ahead settings for one of my entity beans, i get an exception that the method doesn't exist. Is it a JBoss bug or forbidden on purpose?


      The exception I get in deployment:

      Unknown query method : public abstract com.mycompany.TaskLocal com.mycompany.TaskLocalHome.findByPrimaryKey(java.lang.Integer) throws javax.ejb.FinderException

      I tried to work around this by defining the above settings for the entire bean, and then override the settings for each custom query, but the problem is that the eager load group of the entire bean gets loaded anyway, on the ejbLoad of the bean. The strategy for the entire bean is on-find.
      Help would be appriciated