• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

why ejbCreate() of Entity Bean 2.0 returns null ??

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I've a doubt in ejbCreate() method of entity bean. In
EJB2.0 why does the ejbCreate() methods of Abstract Bean class
returns null instead of returning primary key. For example

public Integer ejbCreate(Integer id){
this.setId(id);
return null;
}

what's the rationale behind this and how does ejb container
implements this?
regs
Dez
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
bcos container handleds data transfer bt resourse factory and bean varialbles.so bean developer does not assingn a primarykey rather continer automatically assinging to bean instaces.so it returns null.
 
Ramakrishnan thiyagarajan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
bcos container handleds data transfer bt resourse factory and bean varialbles.so bean developer does not assingn a primarykey rather continer automatically assinging to bean instaces.so it returns null.
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic