• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessor Methods parameter types - Entity Beans

 
Gustavo Dutra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

I read that primary keys must be a class type,

but what about the parameter of the accessor methods,

I am not sure, the parameter must be a class??

a primitive is possible??

Thanks,

Gustavo
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A primitive type is also possible. Actually, anything that is serializable can be a parameter of an accessor/mutator method and primitive types are serializable by default...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic