Gerrit Grobbelaar wrote:

Hi all,

Urgent help needed:
I get the following error when trying to generate the ejb-jar.xml file:

[ejbdoclet] ERROR [main] (XDocletMain.java:54) - <<Could not find method
getSessionId that is supposed to return the PrimKeyField.>>

This can not be because the generated PK class looks as follows:

=====================================
public class SessionGameSchedulePK
  extends java.lang.Object
  implements java.io.Serializable
{

  public java.lang.Long sessionId;
  public java.lang.Long gameScheduleId;

  public SessionGameSchedulePK()
  {
  }

  public SessionGameSchedulePK( java.lang.Long sessionId,java.lang.Long
gameScheduleId )
  {
     this.sessionId = sessionId;
     this.gameScheduleId = gameScheduleId;
  }

  public java.lang.Long getSessionId()
  {
     return sessionId;
  }
  public java.lang.Long getGameScheduleId()
  {
     return gameScheduleId;
  }

  public void setSessionId(java.lang.Long sessionId)
  {
     this.sessionId = sessionId;
  }
  public void setGameScheduleId(java.lang.Long gameScheduleId)
  {
     this.gameScheduleId = gameScheduleId;
  }
}
=====================================

So the getSessionId() method that XDoclet complains about IS present.  Maybe
there is something that I'm missing, but if someone have a quick and easy
remedy to my woes, it will be highly appreciated.

Thanks in advance,
Gerrit Grobbelaar
Is the method getSessionId() also in your entity bean and public accessible there ?
Show us the relevant parts from the ejb class.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to