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/doc/forrest/src/documentation/content/xdocs site.xml
Date Wed, 30 Jun 2004 15:36:51 GMT
arminw      2004/06/30 08:36:51

  Modified:    src/doc/forrest/src/documentation/content/xdocs/docu/guides
                        basic-technique.xml
               src/doc/forrest/src/documentation/content/xdocs/docu faq.xml
               src/doc/forrest/src/documentation/content/xdocs site.xml
  Log:
  add notice about 0/null problem when using
  primitive PK/FK
  
  Revision  Changes    Path
  1.2       +14 -3     db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/guides/basic-technique.xml
  
  Index: basic-technique.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/guides/basic-technique.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- basic-technique.xml	20 Jun 2004 09:12:33 -0000	1.1
  +++ basic-technique.xml	30 Jun 2004 15:36:50 -0000	1.2
  @@ -205,7 +205,10 @@
   >
       <foreignkey field-ref="sampleArticleId""/>
   </reference-descriptor>]]></source>
  -
  +            <note>
  +                When using primitive primary key fields, please pay attention on
  +                <link href="site:faq/primitive-null">how OJB manage <code>null</code>
for primitive PK/FK</link>
  +            </note>
   
               <section>
                   <title>1:1 auto-xxx setting</title>
  @@ -439,7 +442,10 @@
                   the repository file. But in some cases the <em>default</em>
behaviour of OJB is undesired.
                   Please <link href="site:advanced-technique/which-collection-type">read
here for more information</link>.
               </p>
  -
  +            <note>
  +                When using primitive primary key fields, please pay attention on
  +                <link href="site:faq/primitive-null">how OJB manage <code>null</code>
for primitive PK/FK</link>
  +            </note>
   
               <section>
                   <title>1:n auto-xxx setting</title>
  @@ -856,7 +862,12 @@
                       <code>Role</code>.
                   </p>
               </section>
  +            <note>
  +                When using primitive primary key fields, please pay attention on
  +                <link href="site:faq/primitive-null">how OJB manage <code>null</code>
for primitive PK/FK</link>
  +            </note>
   
  +            
               <section>
                   <title>m:n auto-xxx setting</title>
                   <p>
  
  
  
  1.2       +21 -1     db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- faq.xml	20 Jun 2004 09:12:35 -0000	1.1
  +++ faq.xml	30 Jun 2004 15:36:50 -0000	1.2
  @@ -829,6 +829,26 @@
               </answer>
           </faq>
   
  +
  +        <faq id="primitiveNull">
  +            <question>
  +                How does OJB manage 'null' for primitive primary key?
  +            </question>
  +            <answer>
  +                <p>
  +                    Primitive values (int, long, ...) can't be <code>null</code>,
so OJB interpret '0' as <code>null</code>
  +                    for primitive PK/FK fields in persistent objects. Thus primitive PK
fields of persistent objects should
  +                    never be represented by a '0' value in DB and never used as a
  +                    <link href="site:sequence-manager">sequence key</link>
value.
  +                    <br/>
  +                    This is only true for primitive PK/FK fields (e.g. <code>Integer(0)</code>
is allowed).
  +                    All other fields have 'normal' behavior.
  +                </p>
  +            </answer>
  +        </faq>
  +
  +
  +
           <faq id="itOrCol">
               <question>
                   Difference between getIteratorByQuery() and getCollectionByQuery()?
  
  
  
  1.4       +2 -1      db-ojb/src/doc/forrest/src/documentation/content/xdocs/site.xml
  
  Index: site.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/doc/forrest/src/documentation/content/xdocs/site.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- site.xml	20 Jun 2004 20:58:16 -0000	1.3
  +++ site.xml	30 Jun 2004 15:36:50 -0000	1.4
  @@ -72,6 +72,7 @@
                   <lookup-pb href="#lookupPB"/>
                   <lookup-odmg href="#lookupODMG"/>
                   <api-differences href="#differencesBetweenAPI"/>
  +                <primitive-null href="#primitiveNull"/>
           </faq>
           <javadoc label="Javadoc" href="ext:javadoc" description=""/>
           <getting-started label="Getting started" href="getting-started.html" description="summary
of docs"/>
  
  
  

---------------------------------------------------------------------
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