db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <t...@apache.org>
Subject Re: Comments on OJB documentation and site
Date Mon, 23 Dec 2002 17:43:05 GMT
checked in!

Thanks for the patch!
Thomas

O'brien, Tim wrote:
> OJB Committers, I was going to post these patch via Scarab, but it looks to
> be unavailable at the moment...
> 
>>From what I can see,
> PersistenceBrokerFactory.createPersistenceBroker(String), doesn't exist in
> the current nightly build.  I changed the code example in tutorial1 to
> reflect this.  In other words, the xdocs in CVS are targeted towards the
> latest build, the deprectated function you refer to is now removed from the
> latest code.
> 
> These patches address a very minor change to tutorial1, and also a change to
> tutorial3.  Tutorial3 was making a call to
> PersistenceBrokerFactory.createPresistenceBroker() (function does not
> exist), changed to PersistenceBrokerFactory.defaultPersistenceBroker();
> Please advise if this is incorrect.
> 
> Thank you for catching this error IAS.
> 
> --------
> Tim O'Brien 
> M 847-863-7045
> 
> 
> 
>>-----Original Message-----
>>From: IAS [mailto:iasandcb@apache-korea.org] 
>>Sent: Monday, December 23, 2002 1:05 AM
>>To: ojb-dev@jakarta.apache.org
>>Subject: Comments on OJB documentation and site
>>
>>
>>First of all, thanks for your great work, OJB.
>> 
>>I've learn OJB from tutorial1.html on the site and found that
>> 
>>broker = PersistenceBrokerFactory.createPersistenceBroker(new
>>PBKey("repository.xml"));
>> 
>>should be
>> 
>>broker = PersistenceBrokerFactory.createPersistenceBroker(new
>>PBKey("repository.xml"));
>>                                        
>>because 
>> 
>>org.apache.ojb.broker.PersistenceBrokerFactory.createPersisten
>>ceBroker(S
>>tring) method is deprecated.
>> 
>>In addition,
>>http://jakarta.apache.org/ojb/repository.xml.txt
>>http://jakarta.apache.org/ojb/repository_internal.xml.txt
>>http://jakarta.apache.org/ojb/repository_junit.xml.txt
>>http://jakarta.apache.org/ojb/repository_junit.xml.txt
>>from http://jakarta.apache.org/ojb/repository.html
>>and
>>http://jakarta.apache.org/ojb/OJB.properties.txt
>>from http://jakarta.apache.org/ojb/ojb-properties.html
>>are inaccessible with "404 Not Found" message.
>> 
>>Merry Christmas!
>> 
>>===========================================================
>>Lee, Changshin (Korean name)
>>IAS (International name) 
>>                   Company Web Site:  <http://www.tmax.co.kr> 
> 
> http://www.tmax.co.kr
>                    Personal Web Site:  <http://www.iasandcb.pe.kr>
> http://www.iasandcb.pe.kr
> ---------------------------------------------------------
> Senior Researcher & Java Technology Evangelist
> JCP member -  <http://jcp.org/en/participation/members/L>
> http://jcp.org/en/participation/members/L
> R&D Institute
> Tmax Soft, Inc. 
> JCP member -  <http://jcp.org/en/participation/members/T>
> http://jcp.org/en/participation/members/T
> ==========================================================
>  
> 
> 
> ------------------------------------------------------------------------
> 
> Index: tutorial1.xml
> ===================================================================
> RCS file: /home/cvspublic/jakarta-ojb/xdocs/tutorial1.xml,v
> retrieving revision 1.14
> diff -u -r1.14 tutorial1.xml
> --- tutorial1.xml	21 Dec 2002 16:17:34 -0000	1.14
> +++ tutorial1.xml	23 Dec 2002 16:50:23 -0000
> @@ -229,7 +229,7 @@
>      try
>      {
>          broker = PersistenceBrokerFactory.
> -                    createPersistenceBroker("repository.xml");
> +                    createPersistenceBroker(new PBKey("repository.xml"));
>      }
>      catch (Throwable t)
>      {
> 
> 
> ------------------------------------------------------------------------
> 
> Index: tutorial3.xml
> ===================================================================
> RCS file: /home/cvspublic/jakarta-ojb/xdocs/tutorial3.xml,v
> retrieving revision 1.14
> diff -u -r1.14 tutorial3.xml
> --- tutorial3.xml	21 Dec 2002 16:17:34 -0000	1.14
> +++ tutorial3.xml	23 Dec 2002 17:06:59 -0000
> @@ -1399,7 +1399,7 @@
>          {
>              String concreteClass =
>                  (String) row.get(concreteClassFD.getColumnName());
> -            broker =PersistenceBrokerFactory.createPersistenceBroker();
> +            broker = PersistenceBrokerFactory.defaultPersistenceBroker();
>              ClassDescriptor result =
>                  broker.getClassDescriptor(
>                    Class.forName(
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --
> To unsubscribe, e-mail:   <mailto:ojb-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-dev-help@jakarta.apache.org>



Mime
View raw message