• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ques about primary key class

 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The primary key type must be a legal Value Type in RMI-IIOP.

Can we give primitive types as primary key ( int, float etc) ???
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic