Re: [JBoss-user] newbie persistence question

2001-09-30 Thread Michael Angelo Libio

Look into JAWS custom finders from JBoss documentation :)

- Original Message - 
From: "Frank Morton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 6:39 PM
Subject: [JBoss-user] newbie persistence question


> I realize this is probably a really dumb question, but I'm
> just getting into the different persistence models.
> 
> I understand CMP and how it could be used nicely
> for something like users of a system. But what if I
> want to do a simple query that returns multiple results,
> like say all users that live in texas? It seems with what
> I have studied so far that CMP works great for things
> that have a unique id that are normally retrieved one
> at a time, but once you go beyond that, you have
> to start using BMP. So, with a query as simple as:
> 
> select * from userlist where state='TX';
> 
> you'd have to use BMP. Is that right?
> 
> Thanks for the newbie hand holding...
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] newbie persistence question

2001-09-30 Thread David Jencks

Finders can return a single remote interface or a Collection of remote
interfaces: your example would return a Collection, as does findAll.

david jencks

On 2001.09.30 21:39:07 -0400 Frank Morton wrote:
> I realize this is probably a really dumb question, but I'm
> just getting into the different persistence models.
> 
> I understand CMP and how it could be used nicely
> for something like users of a system. But what if I
> want to do a simple query that returns multiple results,
> like say all users that live in texas? It seems with what
> I have studied so far that CMP works great for things
> that have a unique id that are normally retrieved one
> at a time, but once you go beyond that, you have
> to start using BMP. So, with a query as simple as:
> 
> select * from userlist where state='TX';
> 
> you'd have to use BMP. Is that right?
> 
> Thanks for the newbie hand holding...
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] newbie persistence question

2001-09-30 Thread Frank Morton

I realize this is probably a really dumb question, but I'm
just getting into the different persistence models.

I understand CMP and how it could be used nicely
for something like users of a system. But what if I
want to do a simple query that returns multiple results,
like say all users that live in texas? It seems with what
I have studied so far that CMP works great for things
that have a unique id that are normally retrieved one
at a time, but once you go beyond that, you have
to start using BMP. So, with a query as simple as:

select * from userlist where state='TX';

you'd have to use BMP. Is that right?

Thanks for the newbie hand holding...



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user