aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes ques about primary key class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "ques about primary key class" Watch "ques about primary key class" New topic
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 ???
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ques about primary key class
 
Similar Threads
Undefined Primary Key
p.363-mock exam q.5
primary key
hashcode() & equals() method in Entity Bean
Select query not working properly