Thanks for the reply Jeff. Know I have two replies: One saying primary keys
can be primitive types and one that says they can't.
I am really looking forward to hearing your arguments, gentlemen ;-)
BTW, Jeff: Your answer to question number 1 - do you have that from the
specification, or...
Randahl
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
Sent: 1. marts 2001 02:52
To: Orion-Interest
Subject: RE: Database schema type mappings
>From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]
>
>1. Why is Integers automatically converted to int by Orion -
>and is this a
>standard EJB convention?
Yes. All the class representations of the primitive types should work
that way.
>2. Would it be legal to have a primary key of the primitive type "int"
>instead of Integer?
No. Primary keys must be Objects. This makes sense because
EntityContext.getPrimaryKey() returns an Object.
Jeff