You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/03/25 11:56:39 UTC

Newbie : Select *

All,

 

 

What is the best way to perform a < select *" request.

 

QuesryByCriteria is not wonderful is there anything else ??

 

Tx !

 

 


Re: Newbie : Select *

Posted by Alexandre Touret <al...@cgbi.fr>.
This is described in the OJB 's tutorial.

/*manager is instanceOf PeristenceManager*/
Query query = manager.newQuery(MaClasse.class)
Collection results = (Collection)query.execute();

This code works with the C/S API and JDO

Alexandre Touret
Emmanuel Dupont wrote:

>All,
>
> 
>
> 
>
>What is the best way to perform a < select *" request.
>
> 
>
>QuesryByCriteria is not wonderful is there anything else ??
>
> 
>
>Tx !
>
> 
>
> 
>
>
>  
>

-- 
______________________________
Alexandre Touret
CGBI
69 Boulevard GalliƩni
92130 Issy les Moulineaux
tel.: 01/55/95/53/95        Poste: 5395
mailto:alexandre.touret@cgbi.fr