Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

CMP types

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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=-
 
Oh. Hi guys! Look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic