RE: [jBoss-User] ejb finder question

2000-12-12 Thread Jay Walters
-) Cheers -Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 9:29 AM To: jBoss Subject: Re: [jBoss-User] ejb finder question Hi! Jay Walters wrote: > I don't believe you execute the findByPrimaryKey method if you are using > another find

Re: [jBoss-User] ejb finder question

2000-12-12 Thread Rickard Öberg
Richard Gyger wrote: > But the updates are still written out as separate db calls. If you are going > to do the same update action on 1000 entity instances, it could be more > efficient to use a session bean to update them all with one call. True. > It really depends on the use of the entity. >

RE: [jBoss-User] ejb finder question

2000-12-12 Thread Richard Gyger
e-off. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard Öberg Sent: Tuesday, December 12, 2000 8:29 AM To: jBoss Subject: Re: [jBoss-User] ejb finder question Hi! Jay Walters wrote: > I don't believe you execute the findByPrimaryKey method if

RE: [jBoss-User] ejb finder question

2000-12-12 Thread Richard Gyger
e-off. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard Öberg Sent: Tuesday, December 12, 2000 8:29 AM To: jBoss Subject: Re: [jBoss-User] ejb finder question Hi! Jay Walters wrote: > I don't believe you execute the findByPrimaryKey method if

Re: [jBoss-User] ejb finder question

2000-12-12 Thread Rickard Öberg
Hi! Jay Walters wrote: > I don't believe you execute the findByPrimaryKey method if you are using > another finder, but you certainly load them one at a time. The findByFoo > returns a collection of Pks and the container will load the entity beans for > you one at a time using those keys. But n

RE: [jBoss-User] ejb finder question

2000-12-12 Thread Jay Walters
[mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 8:12 PM To: [EMAIL PROTECTED] Subject: [jBoss-User] ejb finder question Im a little confused I think. I need to find and return around 1000 entity beans in one call, but it looks like the EJB spec forces a container implementation to load the

RE: [jBoss-User] ejb finder question

2000-12-12 Thread Richard Gyger
ginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Day Sent: Monday, December 11, 2000 7:12 PM To: [EMAIL PROTECTED] Subject: [jBoss-User] ejb finder question Im a little confused I think. I need to find and return around 1000 entity beans in one call, but it looks

[jBoss-User] ejb finder question

2000-12-11 Thread Craig Day
Im a little confused I think. I need to find and return around 1000 entity beans in one call, but it looks like the EJB spec forces a container implementation to load these beans one at a time,.. i.e. you define the finder method that returns the collection of 1000 primary keys, and then you re