db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/query QueryByIdentity.java
Date Thu, 13 Jan 2005 16:14:35 GMT
arminw      2005/01/13 08:14:35

  Modified:    src/java/org/apache/ojb/broker/query Tag: OJB_1_0_RELEASE
                        QueryByIdentity.java
  Log:
  fix javadoc
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.2   +13 -3     db-ojb/src/java/org/apache/ojb/broker/query/QueryByIdentity.java
  
  Index: QueryByIdentity.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/query/QueryByIdentity.java,v
  retrieving revision 1.9.2.1
  retrieving revision 1.9.2.2
  diff -u -r1.9.2.1 -r1.9.2.2
  --- QueryByIdentity.java	13 Jan 2005 15:58:48 -0000	1.9.2.1
  +++ QueryByIdentity.java	13 Jan 2005 16:14:35 -0000	1.9.2.2
  @@ -40,10 +40,20 @@
    * <i>"find the article with Identity xyz"</i> could be represnted as<br/>
    * <br/>
    * <code>
  - * Identity xyz = new Identity(example);<br/>
  + * Article example = new Article();<br/>
  + * example.setId(7);<br/>
  + * Identity xyz = broker.serviceIdentity().buildIdentity(example);<br/>
    * Query qry = new QueryByIdentity(xyz);<br/>
  + * Collection col = broker.getObjectByQuery(qry);<br/>
    * </code>
  - * 
  + * <br/>
  + * But in this case a smarter solution will be<br/>
  + * <br/>
  + * <code>
  + * Identity xyz = broker.serviceIdentity().buildIdentity(Article.class, new Integer(7));<br/>
  + * Collection col = broker.getObjectByIdentity(xyz);<br/>
  + * </code>
  + *
    * @author <a href="mailto:thma@apache.org">Thomas Mahler<a>
    * @version $Id$
    */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message