<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>mapeo &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/mapeo/</link>
	<description>Feed of posts on WordPress.com tagged "mapeo"</description>
	<pubDate>Wed, 10 Feb 2010 12:26:56 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Nombres de las teclas para hacer un script]]></title>
<link>http://escripts.wordpress.com/2009/09/20/nombres-de-las-teclas-para-hacer-un-script/</link>
<pubDate>Sun, 20 Sep 2009 18:30:54 +0000</pubDate>
<dc:creator>.grasS!</dc:creator>
<guid>http://escripts.wordpress.com/2009/09/20/nombres-de-las-teclas-para-hacer-un-script/</guid>
<description><![CDATA[A la hora de ponerse a hacer un script para Counter Strike, uno de los principales problemas que ten]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>A la hora de ponerse a hacer un <em>script</em> para Counter Strike, uno de los principales problemas que tenemos es el de conocer los nombres que reciben las teclas. Las letras, los números y las <em>Fs</em>, están claros, todos son exactamente igual en el teclado que en el <em>script</em> (a es a, 1 es 1, F1 es F1), pero el problema es cuando queremos usar el tabulador, mayúsculas, Supr, Fin, las flechas del ratón, etc&#8230; o el teclado numérico (el grupo de numeros de la derecha del teclado).</p>
<p>Teclado:</p>
<blockquote>
<pre><strong>&#60;tabulador&#62;              "TAB"
ESC                      "ESCAPE"
Espacio                  "SPACE"
&#60;arriba&#62;                 "UPARROW"
&#60;abajo&#62;                  "DOWNARROW"
&#60;izquierda&#62;              "LEFTARROW"
&#60;derecha&#62;                "RIGHTARROW"
Ctrl                     "CTRL"
Alt                      "ALT"
Mayusculas               "SHIFT"
Pausa                    "PAUSE"
Insert                   "INS"
Inicio                   "HOME"
Supr                     "DEL"
Fin                      "END"
AvPag                    "PGDN"
RePag                    "PGUP"</strong></pre>
</blockquote>
<p><!--more-->Ratón:</p>
<blockquote>
<pre><strong>&#60;rueda adelante&#62;         "MWHEELDOWN"
&#60;rueda atras&#62;            "MWHEELUP"
&#60;boton izq raton&#62;        "MOUSE1"
&#60;boton der raton&#62;        "MOUSE2"
&#60;boton central raton&#62;    "MOUSE3"</strong></pre>
</blockquote>
<p>Teclado Numerico:</p>
<blockquote>
<pre><strong>0       "KP_INS"
1       "KP_END"
2       "KP_DOWNARROW"
3       "KP_PGDN"
4       "KP_LEFTARROW"
5       "KP_5"
6       "KP_RIGHTARROW"
7       "KP_HOME"
8       "KP_UPARROW"
9       "KP_PGUP"
-       "KP_MINUS"
+       "KP_PLUS"
Intro   "KP_ENTER"
.       "KP_DEL"
/       "KP_SLASH"</strong></pre>
</blockquote>
<p>De esta forma si queremos, por ejemplo, comprar  una granada HE usando la tecla Supr podemos hacer el siguiente bind</p>
<blockquote>
<pre><strong>bind DEL "hegren"</strong></pre>
</blockquote>
<blockquote></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[¿Que es mapeo?]]></title>
<link>http://aseguney.wordpress.com/2009/09/01/%c2%bfque-es-mapeo-2/</link>
<pubDate>Tue, 01 Sep 2009 22:28:06 +0000</pubDate>
<dc:creator>aseguney</dc:creator>
<guid>http://aseguney.wordpress.com/2009/09/01/%c2%bfque-es-mapeo-2/</guid>
<description><![CDATA[El mapeo de los estados dentro del diagrama de evoluciones puede ser representado en Un diagrama. Pl]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p align="center"><strong>El mapeo de los estados dentro del diagrama de evoluciones puede ser representado en Un diagrama.</strong></p>
<p align="center"><strong>Plantea la necesidad de un marco de referencia, que permita establecer las mediciones, así como las valoraciones, del desempeño y desarrollo organizacional.</strong><strong> </strong></p>
<p align="center"><strong>Consiste en una plataforma de herramientas para analizar el perfil de composición y articulación de la estructura y los procesos internos de entidades organizacionales, con base en un marco de referencia de parámetros descriptivos, su representación y valoración a través de formatos de tipo tabular y matricial.</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<p align="center"><strong> se </strong><strong>enfoca a la identificación de los parámetros con los que se deben formular el perfil de estructura y procesos internos</strong></p>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong> </strong></td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[traseira basca]]></title>
<link>http://informationkinetics.wordpress.com/2009/08/18/traseira-basca/</link>
<pubDate>Tue, 18 Aug 2009 10:47:21 +0000</pubDate>
<dc:creator>informationkinetics</dc:creator>
<guid>http://informationkinetics.wordpress.com/2009/08/18/traseira-basca/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-full wp-image-128" title="egoviz_traseira basca" src="http://informationkinetics.wordpress.com/files/2009/08/egoviz_traseira-basca.jpg" alt="egoviz_traseira basca" width="418" height="626" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[dia 4_ next museum on paper]]></title>
<link>http://informationkinetics.wordpress.com/2009/08/14/dia-4_-next-museum-on-paper/</link>
<pubDate>Fri, 14 Aug 2009 18:38:50 +0000</pubDate>
<dc:creator>informationkinetics</dc:creator>
<guid>http://informationkinetics.wordpress.com/2009/08/14/dia-4_-next-museum-on-paper/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-medium wp-image-86" title="DSC_2744" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2744.jpg?w=300" alt="DSC_2744" width="300" height="199" /></p>
<p><img class="alignnone size-medium wp-image-87" title="DSC_2745" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2745.jpg?w=199" alt="DSC_2745" width="199" height="300" /></p>
<p><img class="alignnone size-medium wp-image-88" title="DSC_2760" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2760.jpg?w=300" alt="DSC_2760" width="300" height="199" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[dia 4_meet the paper]]></title>
<link>http://informationkinetics.wordpress.com/2009/08/14/dia-4_meet-the-paper/</link>
<pubDate>Fri, 14 Aug 2009 15:38:18 +0000</pubDate>
<dc:creator>informationkinetics</dc:creator>
<guid>http://informationkinetics.wordpress.com/2009/08/14/dia-4_meet-the-paper/</guid>
<description><![CDATA[]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignnone size-medium wp-image-79" title="DSC_2736" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2736.jpg?w=300" alt="DSC_2736" width="300" height="199" /></p>
<p><img class="alignnone size-medium wp-image-80" title="DSC_2737" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2737.jpg?w=300" alt="DSC_2737" width="300" height="199" /></p>
<p><img class="alignnone size-medium wp-image-81" title="DSC_2738" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2738.jpg?w=300" alt="DSC_2738" width="300" height="199" /></p>
<p><img class="alignnone size-medium wp-image-82" title="DSC_2740" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2740.jpg?w=300" alt="DSC_2740" width="300" height="199" /></p>
<p><img class="alignnone size-medium wp-image-83" title="DSC_2741" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2741.jpg?w=300" alt="DSC_2741" width="300" height="199" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[bibliografía "Beatiful Evidence" Edward Tufte]]></title>
<link>http://informationkinetics.wordpress.com/2009/08/12/bibliografia-beatiful-evidence-edward-tufte/</link>
<pubDate>Wed, 12 Aug 2009 19:52:01 +0000</pubDate>
<dc:creator>informationkinetics</dc:creator>
<guid>http://informationkinetics.wordpress.com/2009/08/12/bibliografia-beatiful-evidence-edward-tufte/</guid>
<description><![CDATA[Mapeando imágenes como evidencia y explicación de un contentido. La represencación de una forma fici]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Mapeando imágenes como evidencia y explicación de un contentido.</p>
<p><img class="alignnone size-medium wp-image-68" title="DSC_2756" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2756.jpg?w=224" alt="DSC_2756" width="224" height="300" /></p>
<p>La represencación de una forma ficionada a través de palablas, la proyección de una idea puede generar una forma ideal que puede ser reconocible por un grupo. El contenido de las palabras, tanto físicas como abstracctas pueden mostrar en una forma verval, virtual o visual la proyección de los deseos y ilusiones de quien las usa.</p>
<p><img class="alignnone size-medium wp-image-69" title="DSC_2752" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2752.jpg?w=300" alt="DSC_2752" width="300" height="172" /></p>
<p>El poder de mapear resulta del análisis, la representación y la comprensión/explicación de la información. Esta puede tener diferentes usos y objetivos, condicionados por quien los genera y maneja/mapea.</p>
<p><img class="alignnone size-medium wp-image-71" title="DSC_2753" src="http://informationkinetics.wordpress.com/files/2009/08/dsc_2753.jpg?w=300" alt="DSC_2753" width="300" height="203" /></p>
<p>La mirada generadora de un mapa pretende ser objetiva, pero los criterios de estructuración, gerarquía y visualización son también una evidencia de los intereses de quien los crea y pueden condicionar sus usos.</p>
<p>Su uso puede ser muy diferente si el mapeo se realiza partiendo de criterios y objetivos personales, didácticos o publicitarios, o si la misma información es usada por el gobierno, la industria, el mercado o la investigación.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Nuevo Terem]]></title>
<link>http://proyectoarchet.wordpress.com/2009/06/27/nuevo-terem/</link>
<pubDate>Sat, 27 Jun 2009 20:28:54 +0000</pubDate>
<dc:creator>Gio</dc:creator>
<guid>http://proyectoarchet.wordpress.com/2009/06/27/nuevo-terem/</guid>
<description><![CDATA[Al cambiar de maker tuve que hacer un nuevo mapa de la ciudad inicial Terem, y pues estaba algo cans]]></description>
<content:encoded><![CDATA[Al cambiar de maker tuve que hacer un nuevo mapa de la ciudad inicial Terem, y pues estaba algo cans]]></content:encoded>
</item>
<item>
<title><![CDATA[Mi primer pueblo: Terem]]></title>
<link>http://proyectoarchet.wordpress.com/2009/06/24/mi-primer-pueblo-terem/</link>
<pubDate>Wed, 24 Jun 2009 20:22:17 +0000</pubDate>
<dc:creator>Gio</dc:creator>
<guid>http://proyectoarchet.wordpress.com/2009/06/24/mi-primer-pueblo-terem/</guid>
<description><![CDATA[Aquí les dejo esta imagen de la que será mi primer pueblo, el pueblo de inicio, por ahora lo he llam]]></description>
<content:encoded><![CDATA[Aquí les dejo esta imagen de la que será mi primer pueblo, el pueblo de inicio, por ahora lo he llam]]></content:encoded>
</item>
<item>
<title><![CDATA[Seguridad informática y la localización de IPs]]></title>
<link>http://ntldr1962.wordpress.com/2009/03/14/seguridad-informatica-y-la-localizacion-de-ips/</link>
<pubDate>Sat, 14 Mar 2009 01:38:50 +0000</pubDate>
<dc:creator>ntldr1962</dc:creator>
<guid>http://ntldr1962.wordpress.com/2009/03/14/seguridad-informatica-y-la-localizacion-de-ips/</guid>
<description><![CDATA[                    Hace poco os escribí un post acerca del trazado de una IP de origen. Como sabéis]]></description>
<content:encoded><![CDATA[                    Hace poco os escribí un post acerca del trazado de una IP de origen. Como sabéis]]></content:encoded>
</item>
<item>
<title><![CDATA[Vj's &amp; Mapping]]></title>
<link>http://pelukinespacial.wordpress.com/2009/01/04/vjs-mapping/</link>
<pubDate>Mon, 05 Jan 2009 03:08:37 +0000</pubDate>
<dc:creator>el Jar8</dc:creator>
<guid>http://pelukinespacial.wordpress.com/2009/01/04/vjs-mapping/</guid>
<description><![CDATA[El Mapeo es una tecnica utilizada por los Vj&#8217;s (preguntale a Wiki) para realizar sesiones de p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>El Mapeo es una tecnica utilizada por los Vj&#8217;s <a href="http://es.wikipedia.org/wiki/Videojockey">(preguntale a Wiki)</a> para realizar sesiones de proyeccion sobre una pared o sobre casi cualquier cosa, y consiste en calcular y establecer cuales son las dimenciones de los objetos sobre los cuales se van a proyectar para asi poder realizar una buena presentacion visual.</p>
<p>Lo interesante de este asunto es las cosas que se pueden hacen con esta tecnica en la cual se combinan arte, musica y tecnologia, para crear asi una buena presentacion visual, grafica y artistica, aqui les dejo unos videos.</p>
<p>Aunque no lo paresca todos se hicieron con un solo proyector y mucho trabajo e ingenio.</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/XutwL1iCw_k&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/XutwL1iCw_k&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p>Me gustaria que Dj&#8217;s mexicanos pudieran hacer presentaciones asi como estas que cada ves son mas comunes en Europa</p>
<p>Hay mas&#8230;</p>
<p><!--more--></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/3K_flqBAgok&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/3K_flqBAgok&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/s8y-T57HZAs&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/s8y-T57HZAs&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ORM + NHibernate]]></title>
<link>http://harsoon.wordpress.com/2008/11/27/orm-nhibernate/</link>
<pubDate>Thu, 27 Nov 2008 09:29:38 +0000</pubDate>
<dc:creator>harsoon</dc:creator>
<guid>http://harsoon.wordpress.com/2008/11/27/orm-nhibernate/</guid>
<description><![CDATA[ORM El mapeo entre el modelo de objetos y el modelo relacional es una solución para conseguir la per]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;background:#c0504d;"><span style="color:white;font-family:Cambria;font-size:28pt;"><em>ORM<br />
</em></span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">El mapeo entre el modelo de objetos y el modelo relacional es una solución para conseguir la persistencia de datos en nuestros programas orientados a objetos, permitiendo que se puedan almacenar las instancias de los objetos en una base de datos normal y que luego puedan ser recuperados a su forma usual programática.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Ahora bien, un acercamiento quizás más clásico para esto es el trasladar los datos de los objetos a estructuras de datos simples que puedan ser almacenadas en la base de datos tras un proceso de conversiones, pero esto implica que los datos no son limpiamente almacenados, <!--more-->sino que deben guardarse de otras maneras con algún procedimiento intermedio.  Los paquetes ORM automatizan este proceso haciendo las operaciones de conversión transparentes para el programador.<br />
</span></p>
<p style="text-align:justify;"><span style="font-size:12pt;">Con un paquete de ORM el programador simplemente indica que quiere guardar un objeto y este se almacena automáticamente en la base de datos relacional, luego el programador puede lanzar un procedimiento que recupere instancias del objeto mediante el paquete de mapeo y obtendría estas instancias limpiamente sin enterarse de las conversiones que tuvieron lugar detrás de bastidores.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Uno de estos paquetes es Hibernate para Java, un nombre bastante apropiado ya que nos refiere a la hibernación, como una analogía a lo que le ocurre a los objetos cuando estos pasan por el mapeo y se convierten en objetos persistentes que luego pueden ser &#8220;despertados&#8221; para regresar a la actividad en el programa.   Esto implica determinados cambios en nuestro enfoque de programación pero serán mínimos y en realidad muy económicamente bajos si hablamos de mantener el modelo de objetos limpio.<br />
</span></p>
<p style="text-align:justify;"><span style="font-size:12pt;">Algunos de estos cambios son por ejemplo el contar con una idea básica de características únicas de nuestras instancias que podrían servir por ejemplo como llaves primarias al momento de mapear, además de esto sería necesario el esquematizar varios archivos de configuración que especifiquen como realizar este mapeo, luego el paquete tomará los archivos de configuración y convertirá en cadena nuestras instancias a las tablas.<br />
</span></p>
<p style="text-align:justify;">
<h1><span style="font-size:16pt;">Ventajas y usos<br />
</span></h1>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Esto es claramente útil ya que cada objeto puede guardarse fácilmente, por ejemplo si tuviésemos un juego de computadora donde se trabaja con una gran cantidad de personajes, digamos cada uno un objeto del tipo personaje y cada uno con sus respectivas propiedades como stamina, energía vital, experiencia, etc.  Todo iría bien mientras estuviéramos corriendo el juego, cada personaje tendría sus características en tiempo de corrida, pero… ¿Qué pasa si queremos guardar el juego? Sería algo normal pensar en hacer una tabla con las propiedades de los personajes y guardarlos con un ciclo que recorra todos nuestros personajes actuales, pero sería ideal si se pudieran guardar de alguna manera estos objetos, tal como son actualmente en la memoria ram en la ejecución, para que rápida y limpiamente pudieran ser restaurados al reiniciar el juego con un simple &#8220;recuperar_personaje()&#8221; y esto es precisamente lo que se consigue con ORM.<br />
</span></p>
<p style="text-align:justify;"><span style="font-size:12pt;">El tiempo de ejecución por una de estas operaciones podría ser similar al tiempo que se haría con un while una apertura de conexión y el query de almacenamiento, pues es relativamente lo que hace el ORM pero si es una ventaja en eficiencia a la larga ya que estos paquetes están optimizados para esto, pero quizás más importante todavía, proveen un estándar para cada una de las operaciones de mapeo que realizaremos, es decir, no haremos las cosas de un modo y de otro para distintos objetos, evitando confusiones y posibles ciclos de más.<br />
</span></p>
<p style="text-align:justify;"><span style="font-size:12pt;">Al estar las funcionalidades de ORM convenientemente encapsuladas en las clases de los diversos frameworks, se facilita además mucho el aplicarles otras técnicas, como un singleton para crear un generador de conversiones orm único que ahorrará la inversión en tiempo procesador y en accesos.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Donde quizás se perciben mejor sus bondades es al lidiar con problemas complejos, como las relaciones entre objetos, como de herencia y otras, que precisamente son planificadas y mapeadas gracias al framework ORM que hayamos escogido.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<h1><span style="font-size:16pt;">NHIbernate<br />
</span></h1>
<p style="text-align:justify;"><span style="font-size:12pt;">En el caso particular de .Net podemos emplear Nhibernate, que es un port del framework Hibernate con las clases transformadas para ejecutarse en este framework superior, la mecánica para emplear NHibernate lleva estos pasos básicos:<br />
</span></p>
<ol>
<li>
<div style="text-align:justify;"><span style="font-size:12pt;">Copiar los archivos esquemáticos nhibernate-configuration.xsd y nhibernate-mapping.xsd a la carpeta de esquemas de .Net<br />
</span></div>
</li>
<li>
<div style="text-align:justify;"><span style="font-size:12pt;">Incluir las librerías de Nhibernate en nuestro proyecto.<br />
</span></div>
</li>
<li>
<div style="text-align:justify;"><span style="font-size:12pt;">Planificar nuestros objetos de tal manera que puedan ser mapeados al modelo relacional.<br />
</span></div>
</li>
<li>
<div style="text-align:justify;"><span style="font-size:12pt;">Escribir  un archivo xml para cada clase donde planteamos como se mapeará el objeto al modelo relacional, incluyendo por ejemplo que campos del objeto formarán la llave primaria en la tabla.<br />
</span></div>
</li>
<li>
<div style="text-align:justify;"><span style="font-size:12pt;">Programar funciones que faciliten el trabajo con los objetos como procedimientos de igualdad o almacenadores y recuperadores de objetos en masa.<br />
</span></div>
</li>
</ol>
<p style="text-align:justify;">
<p style="text-align:justify;">
<h1><span style="font-size:16pt;">Ejemplo<br />
</span></h1>
<p style="text-align:justify;"><span style="font-size:12pt;">Un ejemplo empleado bastante práctico es el de la creación de objetos de tipo producto y luego facturas que pueden tener muchos objetos, con un modelo de objetos como este:<br />
</span></p>
<p style="text-align:justify;"><img src="http://harsoon.files.wordpress.com/2008/11/112708-0929-ormnhiberna1.png" alt="" /><span style="font-size:12pt;"><br />
</span></p>
<p style="text-align:justify;"><span style="font-size:12pt;">Esto quedaría mapeado a las siguientes tablas, programables en SQL y generadas por el paquete ORM<br />
</span></p>
<p style="text-align:justify;"><img src="http://harsoon.files.wordpress.com/2008/11/112708-0929-ormnhiberna2.png" alt="" /><span style="font-size:12pt;"><br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Luego, cada una de estas clases tiene que contar con su respectivo archivo de configuración xml donde se indicará como será el mapeo, por ejemplo,  para la clase factura el archivo de configuración sería este:<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;">&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243; ?&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;hibernate-mapping xmlns=&#8221;urn:nhibernate-mapping-2.2&#8243; assembly=&#8221;Proy.NH01&#8243; namespace=&#8221;Proy.NH01.Entidades&#8221;&#62;<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;class name=&#8221;LineaFactura&#8221;&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"><br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;id name=&#8221;Id&#8221; column =&#8221;IdLineaFactura&#8221; type=&#8221;int&#8221; unsaved-value=&#8221;0&#8243;&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;generator class=&#8221;identity&#8221;/&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;/id&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"><br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;property name=&#8221;Cantidad&#8221; type=&#8221;int&#8221; /&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;property name=&#8221;Precio&#8221; type =&#8221;Decimal&#8221;/&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"><br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;many-to-one name=&#8221;Factura&#8221; column=&#8221;IdFactura&#8221; /&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;many-to-one name=&#8221;Producto&#8221; column=&#8221;IdProducto&#8221; /&#62;<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;/class&#62;<br />
</span></p>
<p style="text-align:justify;"><span style="font-family:Courier New;font-size:10pt;"> &#60;/hibernate-mapping&#62;<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Aquí notamos como se indica que  partes de la clase serán identificadores, que tipos tendrán los campos y las relaciones que se darán en las diversas columnas.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">Finalmente se tiene que configurar un archivo de preferencias generales de Nhibernate, el isession factory donde se definen parámetros generales como la base de datos relacional a usar, la cadena de conexión y otros.<br />
</span></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">&#60;?xml version="1.0" encoding="utf-8" ?&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">    &#60;hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" &#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">      &#60;session-factory name="NH01"&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;property name="connection.provider"&#62;NHibernate.Connection.DriverConnectionProvider&#60;/property&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;property name="connection.driver_class"&#62;NHibernate.Driver.SqlClientDriver&#60;/property&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;property name="dialect"&#62;NHibernate.Dialect.MsSql2005Dialect&#60;/property&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;property name="connection.connection_string"&#62;Data Source=localhost\SQLEXPRESS;Initial Catalog=NH01;Integrated Security=True&#60;/property&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;property name="show_sql"&#62;true&#60;/property&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">    
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        &#60;mapping assembly="Proy.NH01" /&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">        
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">      &#60;/session-factory&#62;
</span></code></pre>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">    &#60;/hibernate-configuration&#62;
</span></code></pre>
<p style="text-align:justify;">
<p style="text-align:justify;"><span style="font-size:12pt;">En el programa definiremos un objeto sesión que usará estas características y donde ya usaremos operaciones simples para persistir los objetos, tales como:<br />
</span></p>
<p style="text-align:justify;">
<pre><code><span style="font-size:10pt;">sesion.Save(Objeto1);
</span></code></pre>
<p style="text-align:justify;">
<p>Para este ejemplo me base en el excelente blog de uno de los colaboradores de NHIbernate, <a href="http://darioquintana.com.ar/articles/tutorial-de-nhibernate-primeros-pasos">http://darioquintana.com.ar/articles/tutorial-de-nhibernate-primeros-pasos</a> si les interesa NHibernate ese blog les vendrá como anillo al dedo.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cómo mapear la contabilidad de un Servicio Oficial Peugeot]]></title>
<link>http://redauriga.wordpress.com/2008/11/26/como-mapear-la-contabilidad-de-un-servicio-oficial-peugeot/</link>
<pubDate>Wed, 26 Nov 2008 06:05:20 +0000</pubDate>
<dc:creator>redauriga</dc:creator>
<guid>http://redauriga.wordpress.com/2008/11/26/como-mapear-la-contabilidad-de-un-servicio-oficial-peugeot/</guid>
<description><![CDATA[Os dejamos aquí las instrucciones recomendadas para mapear la contabilidad de los Servicios Oficiale]]></description>
<content:encoded><![CDATA[Os dejamos aquí las instrucciones recomendadas para mapear la contabilidad de los Servicios Oficiale]]></content:encoded>
</item>
<item>
<title><![CDATA[Ficheros de Mapeo]]></title>
<link>http://cyberhotel.wordpress.com/2008/03/09/ficheros-de-mapeo/</link>
<pubDate>Sun, 09 Mar 2008 16:44:53 +0000</pubDate>
<dc:creator>cyberhotel</dc:creator>
<guid>http://cyberhotel.wordpress.com/2008/03/09/ficheros-de-mapeo/</guid>
<description><![CDATA[En varias ocasiones hemos dicho que Hibernate utiliza unos ficheros de mapeo para relacionar tablas ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p class="MsoNormal" align="justify"><span style="color:black;">En varias ocasiones hemos dicho que Hibernate utiliza unos ficheros de mapeo para relacionar tablas con objetos Java, hemos dicho también que estos ficheros están en formato XML y que tienen extensión .hbm.xml. Vamos a ver entonces uno de estos ficheros para entrar en detalle y tener al menos una idea de cómo funcionan.</span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><span style="color:black;">En cyberHotel tenemos una clase que representa una dirección, por lo tanto podemos crear objetos dirección a partir de ella, esta clase<span>  </span>dado que es un POJO tiene unos atributos y unos métodos <i>get</i> y <i>set</i> para acceder a los mismos.<br />
</span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><span style="color:black;">Hemos llamado <i>AddressTo</i> a esta clase y <i>addressTo.hbm.xml</i> al fichero de mapeo, que como comentamos en otras ocasiones, se guarda en el mismo directorio de la clase de forma que está en su mismo paquete Java.</span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><span style="color:black;">Esta es la estructura de <i>addressTo.hbm.xml</i>:</span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:teal;">&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:navy;">&#60;!DOCTYPE hibernate-mapping PUBLIC<br />
&#8220;-//Hibernate/Hibernate Mapping DTD 3.0//EN&#8221;<br />
&#8220;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&#8221;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;color:black;"> </span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">hibernate-mapping</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> package</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">gz.cyberbrain.cyberhotel.model.address.to</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>         </span></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>         </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">class</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">AddressTo</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> table</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">direccion</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>                   </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">id</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">addressId</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> column</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">idDireccion</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> type</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">java.lang.Long</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> unsaved-value</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">null</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><br />
<span>                            </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">generator</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> class</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">increment</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;/&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><br />
<span>                   </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">id</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>                </span><span>   </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">property</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">country</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> column</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">pais</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> type</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">string</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;/&#62;</span>    <span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span><br />
</span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">    &#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">property</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">province</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> column</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">provincia</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> type</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">string</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;/&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><br />
<span>                   </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">property</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">locality</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> column</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">localidade</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> type</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">string</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;/&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>                   </span><span></span></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>         </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">class</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><span>         </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">allAddresses</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">from AddressTo</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;"><br />
<span>         </span>&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">findByCountry</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">from AddressTo address where address.country = ?</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><br />
<span>         </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">findByProvince</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">from AddressTo address where address.country = ? and address.province = ?</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;"><br />
<span>         </span></span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:red;"> name</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">=&#8221;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">findByLocality</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#8220;&#62;</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:black;">from AddressTo address where address.country = ? and address.province = ? and                       address.locality = ?</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">query</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="font-size:7pt;font-family:'Courier New';color:blue;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#60;/</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:maroon;">hibernate-mapping</span><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;">&#62;</span><span style="font-size:7pt;font-family:'Courier New';color:blue;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:7pt;font-family:'Courier New';color:blue;"></span><span style="font-size:7pt;font-family:'Courier New';color:blue;"></span></p>
<p class="MsoNormal"><span style="background:white none repeat scroll 0 50%;font-size:9pt;font-family:'Courier New';color:blue;"></span><span style="font-size:9pt;font-family:'Courier New';color:blue;"></span></p>
<p class="MsoNormal" align="justify"><i><span style="color:black;">hibernate-mapping</span></i><span style="color:black;">: Todos los ficheros de mapeo comienzan y acaban con esta etiqueta. Al comienzo indicamos en el atributo <i>package</i> el paquete Java donde se encuentra la clase. </span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><i><span style="color:black;">class</span></i><span style="color:black;">: Esta etiqueta engloba a la clase con sus atributos, indicando siempre el mapeo a la tabla de la base de datos, así indicamos en <i>name</i> el nombre de la clase y en <i>table</i> el nombre de la tabla a la que representa este objeto. Dentro de <i>class</i> distinguimos la etiqueta <i>id</i> en la cual se indica en <i>name </i>el campo que representa al atributo clave en la clase y en <i><span> </span>column </i>su nombre sobre la tabla, en <i>type</i> el tipo de datos Java, esto es común para el resto de atributos, pero en <i>id</i> además tenemos la propiedad <i>generator</i> que indica la naturaleza del campo clave que en este caso es <i>increment</i> con lo que estamos diciendo que es un identificador autogenerado por la base de datos, si fuese asignado por el usuario sería <i>assigned</i>. Para más detalle se puede consultar la documentación de Hibernate.</span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><span style="color:black;">El resto de atributos se indican en las etiquetas <i>property</i> asociando igualmente nombre del campo de la clase con nombre de columna sobre la tabla y el tipo de datos Java.</span></p>
<div align="justify"></div>
<p class="MsoNormal" align="justify"><i><span style="color:black;">query</span></i><span style="color:black;">: Aquí se indican las consultas que se quieren hacer sobre este objeto, escritas en código HQL (el SQL de Hibernate).</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[_mapeando_en_flickr_]]></title>
<link>http://eblogdepedro.wordpress.com/2008/03/06/_mapeando_en_flickr_/</link>
<pubDate>Wed, 05 Mar 2008 23:10:44 +0000</pubDate>
<dc:creator>eblogdepedro</dc:creator>
<guid>http://eblogdepedro.wordpress.com/2008/03/06/_mapeando_en_flickr_/</guid>
<description><![CDATA[Buenas noches; he estado echando un vistazo, indagando y viendo cómo funcionaba todo esto porque las]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Buenas noches; he estado echando un vistazo, indagando y viendo cómo funcionaba todo esto porque las fotos que tenía geoetiquetadas no aparecían en el mural del grupo.</p>
<p>Y evidentemente ya hemos dado con la solución. Resulta que hay que ir añadiéndolas al mural después de ubicarlas en nuestro mapa. No me había percatado de esto así que no aparecían de ninguna manera, claro. Si alguien cree que es necesario explicarlo con más detalle, a parte de consultar en el foro del grupo, puede decírmelo y edito un pequeño tutorial, aunque ahora que lo he hecho me parece verdaderamente sencillo.</p>
<p>Por supuesto, una consideración, la intención en este grupo es la de etiquetar imágenes, fotografías, de lugares, paisajes, etc. con lo que de algún modo evito, en medida de lo posible, fotos tipo &#8216;familiares&#8217;. Para eso podemos irnos a otro grupo, <a href="http://www.flickr.com/groups/trendelosrincones/" target="_blank">El Tren de los Rincones de España</a>, que aunque también trata de lugares curiosos, podemos incluir algunas fotos más personales. Ya puestos podemos también pasar por este grupo,  <a href="http://www.flickr.com/groups/a_traves_de_tu_mirada/" target="_blank">ATravés de tu Mirada</a>, con fotografías más profesionales y expuestas a concurso entre los miembros.</p>
<p>Aprovecho para enlazar el <a href="http://www.flickr.com/groups/mapeofotograficodeespana/pool/map?mode=group" target="_blank">Mapeo Fotográfico de España</a> del que hablo.</p>
<p align="center"><i>(Este enlace lleva al mapa; si buscas fotos de algún lugar concreto, centra dicho lugar en el mapa, ampliando y desplazándolo, y refresca la página pulsando el icono de refresco </i><img src="http://www.flickr.com/images/new_search_here_default.png" height="22" width="22" /> <i>que hay en la parte inferior, bajo las imágenes deslizantes</i><i>).</i></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
