0 Replies Latest reply on Aug 30, 2001 2:01 PM by Gerd Pranoto

    Problem with primary key data type

    Gerd Pranoto Newbie

      Hi all,

      I'm an EJB/Jboss newbie. Took me 2 days to get it up and running. Right now I am trying to create my own simple entity bean. The problem that I'm having right now is when querying by primary key (findByPrimaryKey(...)), I keep getting
      "SQLException Invalid Descriptor Index"

      Through further investigation, I found out that somehow my primary key is being treated as varchar instead of integer. Included below is how I defined my primary key in jaws.xml and ejb-jar.xml

      --- from jaws.xml

      -- from ejb-jar.xml

      Models a Country

      What did I do wrong?
      Any help would be greatly appreciated.