[lsc-changes] [Ldap Synchronization Connector (LSC)] page changed: documentation:configuration:database:persistence

webmaster at lsc-project.org webmaster at lsc-project.org
Tue Jul 21 19:38:36 CEST 2009


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2009/07/21 19:38
Browser     : Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11
IP-Address  : 82.67.204.30
Hostname    : tru75-2-82-67-204-30.fbx.proxad.net
Old Revision: http://lsc-project.org/wiki/documentation/configuration/database/persistence?rev=1248197736
New Revision: http://lsc-project.org/wiki/documentation/configuration/database/persistence
Edit Summary: 
User        : jclarke

@@ -118,14 +118,14 @@
  Note that the #id# is the SQL field returned by the first SQL query. So, if the first SQL query selects two field (//SELECT name, email//), then you can use these two field to retrieve a user (#name# and #email#). Be careful that field have to be defined in the //resultMap// used by the //select//.
  
  ===== Finalize configuration =====
  
- LSC use Ibatis to make SLQ/LDAP mapping. So, once the XML persistence map created, this one have to be declared into Ibatis through the //sql-map-config.xml// file found into //org.lsc.persistence.xml// package too.
+ LSC use Ibatis to perform SQL/LDAP mapping. So, once the XML persistence map has been created, this has to be declared in Ibatis through the //sql-map-config.xml// file found in ///etc// too.
  
  No need to understand, just add a line like the following:
  
  <code>
- <sqlMap resource="org/lsc/persistence/xml/InetOrgPerson.xml"/>
+ <sqlMap url="file://${lsc.config}/sql-map-config.d/InetOrgPerson.xml"/>
  </code>
  
  You may have something like the following:
  
@@ -147,16 +147,16 @@
        <property name="Pool.MaximumWait" value="1000"/>
      </dataSource>
    </transactionManager>
  
-   <sqlMap resource="org/lsc/persistence/xml/InetOrgPerson.xml"/>
+   <sqlMap url="file://${lsc.config}/sql-map-config.d/InetOrgPerson.xml"/>
  
  </sqlMapConfig>
  </code>
  
  ===== Use auxiliary LDAP object class =====
  
- During the configuration, you may not know exactly which SQL field to select. So, in that particular case, you have to map all attributes (perhaps 100!) into the //resultMap// XML tag, each //property// value must match the corresponding //column// value.
+ During the configuration, you may not know exactly which SQL fields to select. So, in that particular case, you have to map all attributes (perhaps 100!) into the //resultMap// XML tag, each //property// value must match the corresponding //column// value.
  
  With this configuration, you can then create a SQL query that retrieve data for a particular identifier (for the example, we use a fictive //extendedPerson// auxiliary LDAP object class):
  
  <code>



-- 
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/



More information about the lsc-changes mailing list