| Author |
ques about primary key class
|
Giju George
Ranch Hand
Joined: Jun 08, 2004
Posts: 333
|
|
The primary key type must be a legal Value Type in RMI-IIOP. Can we give primitive types as primary key ( int, float etc) ???
|
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
|
 |
Paulo Asterio Nunes
Ranch Hand
Joined: Jul 06, 2004
Posts: 63
|
|
The primary key type must be a legal Value Type in RMI-IIOP It's mean that primary key must implements Serializable interface when you give composite primary key, than it's become a legal value in RMI-IIOP and an other hand i guess that primary key can't be primitive values once you must return null for ejbCreate method at the bean ... Can anyone clarify !?!?!?!?!... thanx ... Paulo Nunes
|
Regards,<br /> <br />Paulo Nunes (Brazil)<br />MCP OCP IBM285 SCJP 1.4 SCWCD 1.4 SCBCD 1.3 SCEA (I)
|
 |
Joe Nguyen
Ranch Hand
Joined: Apr 20, 2001
Posts: 161
|
|
|
RMI-IIOP compliant value is valid as long as it is shippable. It can be primitives, serializable objects, an array of primitives/serializable objects, or a remote object. For entity bean, since a create() method must return null, the primitive option is eliminated. The spec further restricts the data type of primitive key ???
|
 |
 |
|
|
subject: ques about primary key class
|
|
|