Hi,

I check mi config files in a browser like you said me and any syntax
error was showed up. My project's name is ibatis4; i have a Person
interface in ibatis4.Interfaces.IPerson (IPerson is the interface) and
the implementation is in ibatis4.Manejadores.MPerson (MPerson is the
class). The name of my .exe file is ibatis4 and it, the config files
and the mapping file are placed in the solution directory
(ibatis4\bin\Debug). I attached mi dao and SqlMap config files and the
mapping Person file (sorry, only 3K).

Thanks in advice.

Attachment: dao.config
Description: Binary data

Attachment: SqlMap.config
Description: Binary data

<?xml version="1.0" encoding="UTF-8" ?>

<sqlMap namespace="Person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
	xsi:noNamespaceSchemaLocation="SqlMap.xsd">

	<alias>
		<typeAlias alias="Person" type="ibatis4.Objetos.Person" />
	</alias>
	
	<cacheModels>
		<cacheModel id="ListaPersonas-Cache" implementation="MEMORY" >
			<flushInterval hours="24"/>
			<property name="Type" value="Weak"/>
		</cacheModel>	
    </cacheModels>
    
	<resultMaps>                                    	
		<resultMap id="ResultadoPersona" class="Person">
			<result property="Id" column="id"/>
			<result property="FirstName" column="first_name"/>
			<result property="LastName" column="last_name"/>
			<result property="BirthDate" column="birth_date"/>
			<result property="WeightInKilograms" column="weight_kg"/>
			<result property="HeightInMeters" column="height"/>
		</resultMap>
	</resultMaps>
	
	<!-- =============================================
        MAPPED STATEMENTS 
    ============================================= 
    -->
	<statements>
		<select id="SeleccionarPersonaPorId" resultMap="ResultadoPersona" parameterClass="int">
			select * 
			from Person 
			where id = #value#
		</select>
	</statements>
	
</sqlMap>
 

Reply via email to