Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container-manager persistent fields, shouldn't be declared in the entity bean class?

 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm studying that the persiste fields should be declared in the entity bean, via abstract getters and setters methods.

I've got the following question:

'Container-managed persistent fields must be defined in the entity bean class'

I replied 'true', but the answer from the book was false.

Any idea?
 
Will Hunt
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like you said, you don't declare them in your CMP Entity Bean class , they are there because of abstract getters and setters.

You don't define the fields, you just declare the abstract getters and setters for them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic