• 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

CMP types

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Do the abstrat getter methods for CMP have to return object types or can they return primatives? Where is this requirement stated in the spec, if anywhere?
Thanks.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Keith!
I believe the answer can be deduced from the following. According to the spec, only primitive types and serializable objects can be used for assignments (setters) to cmp-fields for a cmp entity bean. It doesn't explicitly say anything about getters, but I would say that the same rules apply - you can get primitives and serializable objects.
Page 130, last bullet point on the EJB 2.0 spec.
-=david=-
 
David Harrigan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Keith!
I believe the answer can be deduced from the following. According to the spec, only primitive types and serializable objects can be used for assignments (setters) to cmp-fields for a cmp entity bean. It doesn't explicitly say anything about getters, but I would say that the same rules apply - you can get primitives and serializable objects.
Page 130, last bullet point on the EJB 2.0 spec.
-=david=-
 
Always look on the bright side of life. At least this ad is really tiny:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic