I'am using JBoss 3.0.2 and I'm having some problems to optimize my entity beans.
What I want to do is to load a complete bean when calling a finder (findByPrimaryKey + all others).
For a finder method, I can define the read-ahead attributes and it works. But what about my 'findByPrimaryKey' method ? When I try to do the following :
JBoss says, during deployment, that :
Unknown query method : public abstract MyBean MyBeanHome.findByPrimaryKey(java.lang.Integer) throws javax.ejb.FinderException
So, how do it then ?
Also, I tried to the following :
But it didn't change anything.
Any idea ?