• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Dez Max
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
 
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.
 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!