Re: EJB Primary Key of int

2001-10-04 Thread Nick Newman

int is not a valid primary key - it has to be an object, not a primitive. 
Use Integer instead.

Nick

At 04:56 PM 10/4/01 -0400, you wrote:
I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





Re: EJB Primary Key of int

2001-10-04 Thread Fredrik Lindgren

You need to use Integer as PK Class. PK must extend Object

Marc Rabil wrote:

 I can not figure out how to get Orion's EJB CMP to work when the primary key
 is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:
 
 prim-key-classint/prim-key-class
 
 When starting up Orion, I get:
 
 Class 'int' not found
 
 Any help will be greatly appreciated,
 
 Marc
 
 
 
 






RE: EJB Primary Key of int

2001-10-04 Thread Alex Paransky

User Integer...

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc Rabil
Sent: Thursday, October 04, 2001 1:56 PM
To: Orion-Interest
Subject: EJB Primary Key of int


I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





Re: EJB Primary Key of int

2001-10-04 Thread Ray Harrison

You will want to use Integer not int

--- Marc Rabil [EMAIL PROTECTED] wrote:
 I can not figure out how to get Orion's EJB CMP to work when the primary key
 is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:
 
 prim-key-classint/prim-key-class
 
 When starting up Orion, I get:
 
 Class 'int' not found
 
 Any help will be greatly appreciated,
 
 Marc
 
 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1