• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!