openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r453819 - in /incubator/openjpa/trunk: openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java openjpa-project/src/doc/manual/jpa_overview_query.xml openjpa-project/src/doc/manual/ref_guide_conf.xml
Date Sat, 07 Oct 2006 00:30:32 GMT
Author: awhite
Date: Fri Oct  6 17:30:31 2006
New Revision: 453819

URL: http://svn.apache.org/viewvc?view=rev&rev=453819
Log:
Changed default lines between blocks to be 1 in our code format to mirror
openjpa conventions, and minor doc fixes.


Modified:
    incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java
    incubator/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml
    incubator/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml

Modified: incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java?view=diff&rev=453819&r1=453818&r2=453819
==============================================================================
--- incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java
(original)
+++ incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/CodeFormat.java
Fri Oct  6 17:30:31 2006
@@ -31,7 +31,7 @@
     private boolean _braceOnSameLine = true;
     private boolean _braceAtSameTabLevel = false;
     private boolean _scoreBeforeFieldName = false;
-    private int _linesBetweenSections = 2;
+    private int _linesBetweenSections = 1;
 
     private StringBuffer _buf = new StringBuffer();
 
@@ -135,14 +135,14 @@
     }
 
     /**
-     * The number of empty lines between code sections. Defaults to 2.
+     * The number of empty lines between code sections. Defaults to 1.
      */
     public int getLinesBetweenSections() {
         return _linesBetweenSections;
     }
 
     /**
-     * The number of empty lines between sections. Defaults to 2.
+     * The number of empty lines between sections. Defaults to 1.
      */
     public void setLinesBetweenSections(int linesBetweenSections) {
         _linesBetweenSections = linesBetweenSections;

Modified: incubator/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml?view=diff&rev=453819&r1=453818&r2=453819
==============================================================================
--- incubator/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml (original)
+++ incubator/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_query.xml Fri Oct
 6 17:30:31 2006
@@ -707,13 +707,13 @@
 EntityManager em = ...
 Query q = em.createNamedQuery("magsOverPrice");
 q.setParameter(1, 5.0f);
-List<Magazine> results = q.getResultList();
+List<Magazine> results = (List<Magazine>) q.getResultList();
 </programlisting>
 <programlisting>
 EntityManager em = ...
 Query q = em.createNamedQuery("magsByTitle");
 q.setParameter("titleParam", "JDJ");
-List&lt;Magazine&gt; results = q.getResultList();
+List&lt;Magazine&gt; results = (List&lt;Magazine&gt;) q.getResultList();
 </programlisting>
         </section>
         <section id="jpa_overview_query_delete">

Modified: incubator/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml?view=diff&rev=453819&r1=453818&r2=453819
==============================================================================
--- incubator/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml (original)
+++ incubator/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_conf.xml Fri Oct  6 17:30:31
2006
@@ -226,7 +226,7 @@
                 <listitem>
                     <para>
 <literal>-codeFormat./-cf.linesBetweenSections &lt;lines&gt;</literal>:
The
-number of lines to skip between sections of code. Defaults to 2.
+number of lines to skip between sections of code. Defaults to 1.
                     </para>
                 </listitem>
             </itemizedlist>



Mime
View raw message