posted 21 years ago
Hello Friends,
I was reading entity beans from ed roman, there it is mentioned that to find out which entity bean is to be removed(when ejbRemove() is invoked). we should take primary key from ctx.getPrimaryKey(). My problem is that each entity bean instance represents a single row in a table, so we can easily store primary key as an instance variable, and use that variable whenever required. why take trouble to call ctx.getPrimaryKey()?
plz clear my doubts
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"