• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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 ???
 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic