Hello...
I have an entity bean which has a field modified_by, which contains the user
ID of the last person who updated the bean. Our current implementation is
like this:

1. update a bean
2. username = context.getCallerPrincipal().getName()
3. user = UserHome.findByUserName(username)
4. id = user.getID()
5. modifiedBean.setModifiedBy(id)

What do you think? I feel that it's a bit inefficient cause retrieving the
userEJB would synchronize all fields from the database. We implemented it
this way cause I feel that it is more OO. What's your opinion?  How would
you implement it?

Please comment. It's bothering for so long.

Thanks....
Jerson

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to