Can you include the code. I assume you are wrapping the int primary key in
the primary key class, like RMH does in the book?

Al

----- Original Message -----
From: Hiep Luong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 2:01 PM
Subject: [JBoss-user] CMP example of primitive key using int


> I've been trying to get the cabinbean example in the RMH
> Enterprise JavaBeans book to work.  This example has a primary key that is
> primitive int.  The way they code it is by creating a cabinPK class which
> goes into the prim-key-class element in the deployment descriptor with a
> corresponding primkey-field element.  It compiled but when I ran this, the
> table gets created but no primary key constraint is created in oracle but
no
> exceptions either.  Beans are created just fine and I see data in the
table
> BUT when I try to retrieve  the bean by using findbyprimarykey method I
get
> "No such entry!" exception always.  Has anyone successful got this to
work?
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to