<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Configuration</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>Recent changes to Configuration</description><atom:link href="https://sourceforge.net/p/rpersistence/wiki/Configuration/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 14 Sep 2011 04:14:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/rpersistence/wiki/Configuration/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v13 
+++ v14 
@@ -11,19 +11,46 @@
 &lt;rpersistence&gt;
 
     &lt;database&gt;
+
+        &lt;!-- Firebird Database
+        &lt;driver&gt;Firebird&lt;/driver&gt;
+        &lt;hostname&gt;localhost&lt;/hostname&gt;
+        &lt;database&gt;/var/lib/firebird/2.1/databases/rexample/rexample.fdb&lt;/database&gt;
+        &lt;username&gt;SYSDBA&lt;/username&gt;
+        &lt;password&gt;password&lt;/password&gt;
+        --&gt;
+
+        &lt;!-- MySQL Database
         &lt;driver&gt;MySQL&lt;/driver&gt;
         &lt;hostname&gt;localhost&lt;/hostname&gt;
         &lt;database&gt;rexample&lt;/database&gt;
         &lt;username&gt;root&lt;/username&gt;
-        &lt;password&gt;yourpassword&lt;/password&gt;
-        &lt;log&gt;false&lt;/log&gt;
+        &lt;password&gt;password&lt;/password&gt;
+
+        --&gt;
     &lt;/database&gt;
 
+    &lt;cache&gt;
+
+        &lt;!-- Cache engine (Filecache|Memcache) --&gt;
+        &lt;engine&gt;Filecache&lt;/engine&gt;
+        
+        &lt;!-- Attributes required for Memcache
+        &lt;host&gt;localhost&lt;/host&gt;
+        &lt;port&gt;11211&lt;/port&gt;
+        --&gt;
+
+    &lt;/cache&gt;
+
+    &lt;!-- Logging (true|false)--&gt;
+    &lt;log&gt;true&lt;/log&gt;
+
     &lt;classes&gt;
         &lt;class location="entities/User.class.php"    mapping="User.mapping.xml" /&gt;
     &lt;/classes&gt;
 
 &lt;/rpersistence&gt;
+
 
 There are only two drivers available at the moment. MySQL and Firebird.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Wed, 14 Sep 2011 04:14:50 -0000</pubDate><guid>https://sourceforge.net8f238263cf59906d9d85200580e479fcf1ef6939</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v12 
+++ v13 
@@ -16,6 +16,7 @@
         &lt;database&gt;rexample&lt;/database&gt;
         &lt;username&gt;root&lt;/username&gt;
         &lt;password&gt;yourpassword&lt;/password&gt;
+        &lt;log&gt;false&lt;/log&gt;
     &lt;/database&gt;
 
     &lt;classes&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 23:45:16 -0000</pubDate><guid>https://sourceforge.net28c34808a8821ddbbdf2c3dd45566ee3e07e378d</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v11 
+++ v12 
@@ -29,7 +29,6 @@
 For example we will create a the User class in entities/User.class.php. 
 
 ~~~~~~
-
 &lt;?php
 
 class User {
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 14:19:57 -0000</pubDate><guid>https://sourceforge.net24031b82e47add0d50f8643b643b76a0df3a9a94</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v10 
+++ v11 
@@ -15,7 +15,7 @@
         &lt;hostname&gt;localhost&lt;/hostname&gt;
         &lt;database&gt;rexample&lt;/database&gt;
         &lt;username&gt;root&lt;/username&gt;
-        &lt;password&gt;qsbpecnld&lt;/password&gt;
+        &lt;password&gt;yourpassword&lt;/password&gt;
     &lt;/database&gt;
 
     &lt;classes&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:45:03 -0000</pubDate><guid>https://sourceforge.net2ebb6c17d36c143d3694ba58a70fd5584c18427f</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v9 
+++ v10 
@@ -99,6 +99,6 @@
 
 ~~~~~~~
 
-var indicates the class field and db indicates the db column.
+var indicates the class field and db the database column.
 
-&lt;strong&gt;Types avaialables:&lt;/strong&gt; TEXT, NUMBER and DATE
+&lt;strong&gt;Types avaialable:&lt;/strong&gt; TEXT, NUMBER and DATE.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:43:39 -0000</pubDate><guid>https://sourceforge.net26b7e6155f5805a92617e089bb312addec3ea77a</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v8 
+++ v9 
@@ -74,29 +74,30 @@
 
 Here is the content of User.mapping.xml.
 
-&lt;?xml version="1.0" ?&gt;
-
+~~~~~~~
+
 &lt;class name="User" table="users"&gt;
     &lt;primaryKey autoincrement="true"&gt;id&lt;/primaryKey&gt;
     &lt;fields&gt;
         &lt;field&gt;
             &lt;var&gt;id&lt;/var&gt;
             &lt;db&gt;id&lt;/db&gt;
             &lt;type&gt;NUMBER&lt;/type&gt;
         &lt;/field&gt;
         &lt;field&gt;
             &lt;var&gt;user&lt;/var&gt;
             &lt;db&gt;username&lt;/db&gt;
             &lt;type&gt;TEXT&lt;/type&gt;
         &lt;/field&gt;
         &lt;field&gt;
             &lt;var&gt;password&lt;/var&gt;
             &lt;db&gt;passwd&lt;/db&gt;
             &lt;type&gt;TEXT&lt;/type&gt;
         &lt;/field&gt;
     &lt;/fields&gt;
 &lt;/class&gt;
 
+~~~~~~~
 
 var indicates the class field and db indicates the db column.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:43:02 -0000</pubDate><guid>https://sourceforge.netc85f49738a8004350921b8b6f29cebd77bc09a5d</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v7 
+++ v8 
@@ -24,47 +24,80 @@
 
 &lt;/rpersistence&gt;
 
-Then you have to create the mapping files inside the "xml" directory and their respective class inside the "entities" directory.
-
+There are only two drivers available at the moment. MySQL and Firebird.
+
 For example we will create a the User class in entities/User.class.php. 
 
 ~~~~~~
 
 &lt;?php
 
 class User {
 
     private $id;
     private $user;
     private $password;
 
     public function getId() {
         return $this-&gt;id;
     }
 
     public function setId($id) {
         $this-&gt;id = $id;
     }
 
     public function getUser() {
         return $this-&gt;user;
     }
 
     public function setUser($user) {
         $this-&gt;user = $user;
     }
 
     public function getPassword() {
         return $this-&gt;password;
     }
 
     public function setPassword($password) {
         $this-&gt;password = $password;
     }
 }
 
 ?&gt;
 
 ~~~~~~~
 
 &lt;strong&gt;Important!&lt;/strong&gt; You have to implement getters and setters!
+
+
+Then you have to create the mapping files inside the "xml" directory.
+
+Here is the content of User.mapping.xml.
+
+&lt;?xml version="1.0" ?&gt;
+
+&lt;class name="User" table="users"&gt;
+    &lt;primaryKey autoincrement="true"&gt;id&lt;/primaryKey&gt;
+    &lt;fields&gt;
+        &lt;field&gt;
+            &lt;var&gt;id&lt;/var&gt;
+            &lt;db&gt;id&lt;/db&gt;
+            &lt;type&gt;NUMBER&lt;/type&gt;
+        &lt;/field&gt;
+        &lt;field&gt;
+            &lt;var&gt;user&lt;/var&gt;
+            &lt;db&gt;username&lt;/db&gt;
+            &lt;type&gt;TEXT&lt;/type&gt;
+        &lt;/field&gt;
+        &lt;field&gt;
+            &lt;var&gt;password&lt;/var&gt;
+            &lt;db&gt;passwd&lt;/db&gt;
+            &lt;type&gt;TEXT&lt;/type&gt;
+        &lt;/field&gt;
+    &lt;/fields&gt;
+&lt;/class&gt;
+
+
+var indicates the class field and db indicates the db column.
+
+&lt;strong&gt;Types avaialables:&lt;/strong&gt; TEXT, NUMBER and DATE
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:41:54 -0000</pubDate><guid>https://sourceforge.netd941763b72f5e6c270f3ee65f3408fa0d509d2d6</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v6 
+++ v7 
@@ -30,7 +30,6 @@
 
 ~~~~~~
 
-
 &lt;?php
 
 class User {
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:04:07 -0000</pubDate><guid>https://sourceforge.net74c45f8ec07f495e8073dc3ae79c7ece4efcad73</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v5 
+++ v6 
@@ -1,30 +1,28 @@
+&lt;h3&gt;XML Configuration and Mapping&lt;/h3&gt;
+
 The main configuration file must be located in xml/rpersistence-config.xml.
 
 You have to define your database settings and your xmls mapping files with their respective classes.
 
 Here is an example:
 
-~~~~~~~
-
 &lt;?xml version="1.0" ?&gt;
 
 &lt;rpersistence&gt;
 
     &lt;database&gt;
         &lt;driver&gt;MySQL&lt;/driver&gt;
         &lt;hostname&gt;localhost&lt;/hostname&gt;
         &lt;database&gt;rexample&lt;/database&gt;
         &lt;username&gt;root&lt;/username&gt;
         &lt;password&gt;qsbpecnld&lt;/password&gt;
     &lt;/database&gt;
 
     &lt;classes&gt;
         &lt;class location="entities/User.class.php"    mapping="User.mapping.xml" /&gt;
     &lt;/classes&gt;
 
 &lt;/rpersistence&gt;
-
-~~~~~~
 
 Then you have to create the mapping files inside the "xml" directory and their respective class inside the "entities" directory.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:03:23 -0000</pubDate><guid>https://sourceforge.nete421c4fb303034f831cd3a08962055bf7da64615</guid></item><item><title>WikiPage Configuration modified by Rodrigo</title><link>https://sourceforge.net/p/rpersistence/wiki/Configuration/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -25,13 +25,10 @@
 &lt;/rpersistence&gt;
 
 ~~~~~~
-~~~~~~
-
-Then you have to create the mapping files inside the "entities" directory. 
-
-For example we will create a User class.
-
-Here is the content of entities/User.class.php. 
+
+Then you have to create the mapping files inside the "xml" directory and their respective class inside the "entities" directory.
+
+For example we will create a the User class in entities/User.class.php. 
 
 ~~~~~~
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rodrigo</dc:creator><pubDate>Tue, 13 Sep 2011 13:02:18 -0000</pubDate><guid>https://sourceforge.net5a0c7a044256e578d168dded0a53ade738b97efe</guid></item></channel></rss>