Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

When an Entity Bean is populated with real entity data

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In HFEJB page:354, under the "Bean" things that can be done inside ejbActivate() , it says
"Use your EntitiyContext to:
1-...,
2-...,
3-get your primary key"

But in page:348,
1. In 1st diagram it says "Container will call ejbActivate()",
2. Then in the 2nd diagram it says "Container populates the entity bean's persistent fields with the real entity data"

So, what I cannot understand is how an entity bean can get a reference to its Primary Key even before its being populated by the container?(as mentioned in page:354)
OR am I missing something here???

If possible please explain also when an entity bean and its EJBObject becomes connected to each other (is it before ejbActivate() or after that?)

tx in advance
[ April 03, 2007: Message edited by: Kenneth Kulathilake ]
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic