<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx</link><description>En estos días, estuve escribiendo unos ejemplos de AjGenesis http://www.ajlopez.com/ajgenesis mi proyecto de código abierto de generación de código, para producir, desde un modelo, aplicaciones tanto en ASP.NET 1.x/2.x, como en JSP, tanto usando SQL Server</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1714053</link><pubDate>Fri, 07 Aug 2009 12:08:45 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1714053</guid><dc:creator>Espinete</dc:creator><description>&lt;p&gt;Para Oracle y C# 3.0 hay algo ? salu2&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1714053" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1642017</link><pubDate>Thu, 24 Jul 2008 15:31:09 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1642017</guid><dc:creator>Luis</dc:creator><description>&lt;p&gt;Angel, todo esta esta genial, decime es posible mediante AjGenesis generar una aplicaion(NHibernate) pero a partir de un esquema de dataset?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1642017" width="1" height="1"&gt;</description></item><item><title>Code Generation as a Service</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1571717</link><pubDate>Fri, 04 Apr 2008 14:58:04 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1571717</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Despues de un tiempo, vuelvo a escribir sobre mi proyecto preferido AjGenesis , un generador de c&amp;#243;digo&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1571717" width="1" height="1"&gt;</description></item><item><title>Sobre la generación de código</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1332298</link><pubDate>Sun, 18 Nov 2007 23:07:25 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1332298</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Quisiera hoy tratar un tema, que de alguna manera lo trato en cada momento en que tengo oportunidad.&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1332298" width="1" height="1"&gt;</description></item><item><title>Desayuno de arquitectura con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1332290</link><pubDate>Sun, 18 Nov 2007 23:06:09 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1332290</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Gracias a la organizaci&amp;#243;n del Microsoft User Group de Argentina , habr&amp;#225; una reuni&amp;#243;n gratuita de arquitectura&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1332290" width="1" height="1"&gt;</description></item><item><title>Reunión de Generación de Sistemas con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1332276</link><pubDate>Sun, 18 Nov 2007 23:04:51 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1332276</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Ya hab&amp;#237;a anunciado que el viernes pasado hab&amp;#237;a desayuno de arquitectura , en el Microsoft User Group&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1332276" width="1" height="1"&gt;</description></item><item><title>Preservando código en AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1297648</link><pubDate>Sun, 11 Nov 2007 08:21:48 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1297648</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Uno de los temas a encarar cuando uno usa un generador de c&amp;#243;digo, o de artefactos de texto en general&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1297648" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1286040</link><pubDate>Wed, 07 Nov 2007 10:24:53 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1286040</guid><dc:creator>Eduardo</dc:creator><description>&lt;p&gt;Es verdad lo unico que haces es manipular texto,&lt;/p&gt;
&lt;p&gt;Como los poetas...&lt;/p&gt;
&lt;p&gt;Muchas gracias por compartir tu trabajo con nosotros.&lt;/p&gt;
&lt;p&gt;Saludos&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1286040" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1166947</link><pubDate>Wed, 05 Sep 2007 09:02:57 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1166947</guid><dc:creator>lopez</dc:creator><description>&lt;p&gt;Para Pablo:&lt;/p&gt;
&lt;p&gt;Ciertamente Spring es grandioso. Sigo las ideas de Rod Johnson desde antes de Spring, cuando ten&amp;#237;a su propio framework en interface21.&lt;/p&gt;
&lt;p&gt;Pero no es la idea de AjGenesis renegar de frameworks. Al contrario: adoptarlos, si se necesitan, o cambiar de framework, plataforma, tecnolog&amp;#237;a, o lo que sea, a partir de un modelo libre.&lt;/p&gt;
&lt;p&gt;Jeje... lo de &amp;quot;ver la luz&amp;quot; viene de las intentos de chistes, que hago en mis cursos. Una de las primeras apariciones de la frase fue hace a&amp;#241;os en:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msmvps.com/blogs/lopez/archive/2007/01/20/evangelizando-net.aspx"&gt;msmvps.com/.../evangelizando-net.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nos leemos!&lt;/p&gt;
&lt;p&gt;Angel &amp;quot;Java&amp;quot; Lopez&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1166947" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1166930</link><pubDate>Wed, 05 Sep 2007 08:58:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1166930</guid><dc:creator>lopez</dc:creator><description>&lt;p&gt;Hola gente!&lt;/p&gt;
&lt;p&gt;Para Alejandro y otros que tengan ese problema: Tendr&amp;#237;a que incluir el ajframework dentro de los ejemplos. Es una dll y un c&amp;#243;digo abierto, que uso como prueba de concepto, podr&amp;#237;an usar Enterprise Library, si quisieran. Pueden obtener esa dll del ejemplo:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.ajlopez.com/downloads/CursoPuntoNet/CodeDotNetArch.zip"&gt;www.ajlopez.com/.../CodeDotNetArch.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;El c&amp;#243;digo de ese utilitario est&amp;#225; en&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.ajlopez.com/downloads/AjFramework-0.1.zip"&gt;www.ajlopez.com/.../AjFramework-0.1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nos leemos!&lt;/p&gt;
&lt;p&gt;Angel &amp;quot;Java&amp;quot; Lopez&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1166930" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1165916</link><pubDate>Wed, 05 Sep 2007 02:34:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1165916</guid><dc:creator>Pablo</dc:creator><description>&lt;p&gt;A ver... para vos los archivos de configuraciones de Spring son un infierno... y los tuyos??? ademas no te compares con una BESTIA como Spring, lo unico q haces ahi es manipular texto... &lt;/p&gt;
&lt;p&gt;&amp;quot;vieron la luz&amp;quot; ...&lt;/p&gt;
&lt;p&gt;Por favor. Solo en Argentina se&amp;#241;oras y se&amp;#241;ores&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1165916" width="1" height="1"&gt;</description></item><item><title>Generando aplicaciones con AjGenesis at Espacio de Dario Quintana</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1095598</link><pubDate>Wed, 08 Aug 2007 16:06:12 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1095598</guid><dc:creator>Generando aplicaciones con AjGenesis at Espacio de Dario Quintana</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Generando aplicaciones con AjGenesis at Espacio de Dario Quintana&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1095598" width="1" height="1"&gt;</description></item><item><title>Generando código para NHibernate (Parte 1)</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1087741</link><pubDate>Sun, 05 Aug 2007 13:18:46 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1087741</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;Ya en alg&amp;#250;n &amp;amp;quot;post&amp;amp;quot; anterior, Generando aplicaciones con AjGenesis coment&amp;#233; sobre c&amp;#243;mo el proyecto&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1087741" width="1" height="1"&gt;</description></item><item><title>Recursos sobre Hibernate</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1042704</link><pubDate>Fri, 20 Jul 2007 10:43:05 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1042704</guid><dc:creator>Angel "Java" Lopez</dc:creator><description>&lt;p&gt;En varios de los ejemplos que vemos en mis cursos de Java, terminamos usando Hibernate , la librer&amp;#237;a&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1042704" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#1020343</link><pubDate>Sat, 14 Jul 2007 00:52:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1020343</guid><dc:creator>alejandro nelis</dc:creator><description>&lt;p&gt;Angel:&lt;/p&gt;
&lt;p&gt;Mil gracias por darnos un poco de vos.&lt;/p&gt;
&lt;p&gt;Saludos cordiales.&lt;/p&gt;
&lt;p&gt;Alejandro Nelis&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1020343" width="1" height="1"&gt;</description></item><item><title>re: Generando aplicaciones con AjGenesis</title><link>http://msmvps.com/blogs/lopez/archive/2007/06/25/generando-aplicaciones-con-ajgenesis.aspx#999349</link><pubDate>Tue, 03 Jul 2007 16:53:41 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:999349</guid><dc:creator>Alejandro Gianazza</dc:creator><description>&lt;p&gt;Angel, gener&amp;#233; el codigo pero al compilar en este modulo no encuentra a AjFramework y los objetos DataParameter, DataService, ... no los reconoce.&lt;/p&gt;
&lt;p&gt;&amp;#191;De donde vinculo AjFramework al proyecto?&lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;#39; File generated using AjGenesis&lt;/p&gt;
&lt;p&gt;&amp;#39; &lt;a rel="nofollow" target="_new" href="http://www.ajlopez.com/ajgenesis"&gt;www.ajlopez.com/ajgenesis&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#39; &lt;a rel="nofollow" target="_new" href="http://www.ajlopez.net/ajgenesis"&gt;www.ajlopez.net/ajgenesis&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#39; Open Source Code Generation Engine&lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;#39;	Project AjFirstExample&lt;/p&gt;
&lt;p&gt;&amp;#39;		First Example using AjGenesis&lt;/p&gt;
&lt;p&gt;&amp;#39;	Entity	Customer&lt;/p&gt;
&lt;p&gt;&amp;#39;		Customer Entity&lt;/p&gt;
&lt;p&gt;&amp;#39;	&lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;Imports System.Collections.Generic&lt;/p&gt;
&lt;p&gt;Imports AjFramework.Data&lt;/p&gt;
&lt;p&gt;Imports AjFirstExample.Entities&lt;/p&gt;
&lt;p&gt;Public Class CustomerData&lt;/p&gt;
&lt;p&gt;	Public Sub Insert(entity as Customer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dpid As New DataParameter&lt;/p&gt;
&lt;p&gt;		dpid.Value = entity.Id&lt;/p&gt;
&lt;p&gt;		DataService.ExecuteNonQuery(&amp;quot;CustomerInsert&amp;quot;, CommandType.StoredProcedure, _&lt;/p&gt;
&lt;p&gt;			dpid, _&lt;/p&gt;
&lt;p&gt;			entity.Name, _&lt;/p&gt;
&lt;p&gt;			entity.Address, _&lt;/p&gt;
&lt;p&gt;			entity.Notes _&lt;/p&gt;
&lt;p&gt;		)&lt;/p&gt;
&lt;p&gt;		entity.Id = dpid.Value&lt;/p&gt;
&lt;p&gt;	End Sub&lt;/p&gt;
&lt;p&gt;	Public Sub Update(entity as Customer)&lt;/p&gt;
&lt;p&gt;		DataService.ExecuteNonQuery(&amp;quot;CustomerUpdate&amp;quot;, CommandType.StoredProcedure, _&lt;/p&gt;
&lt;p&gt;			entity.Id, _&lt;/p&gt;
&lt;p&gt;			entity.Name, _&lt;/p&gt;
&lt;p&gt;			entity.Address, _&lt;/p&gt;
&lt;p&gt;			entity.Notes _&lt;/p&gt;
&lt;p&gt;		)&lt;/p&gt;
&lt;p&gt;	End Sub&lt;/p&gt;
&lt;p&gt;	Public Sub Delete(id as Integer)&lt;/p&gt;
&lt;p&gt;		DataService.ExecuteNonQuery(&amp;quot;CustomerDelete&amp;quot;, CommandType.StoredProcedure, id)&lt;/p&gt;
&lt;p&gt;	End Sub&lt;/p&gt;
&lt;p&gt;	Public Function GetById(id as Integer) as Customer&lt;/p&gt;
&lt;p&gt;		Dim reader as IDataReader = Nothing&lt;/p&gt;
&lt;p&gt;		try&lt;/p&gt;
&lt;p&gt;			reader = DataService.ExecuteReader(&amp;quot;CustomerGetById&amp;quot;, CommandType.StoredProcedure, id)&lt;/p&gt;
&lt;p&gt;			if not reader.Read() then&lt;/p&gt;
&lt;p&gt;				return Nothing&lt;/p&gt;
&lt;p&gt;			end if&lt;/p&gt;
&lt;p&gt;			Dim entity as Customer&lt;/p&gt;
&lt;p&gt;			entity = Make(reader)&lt;/p&gt;
&lt;p&gt;			return entity&lt;/p&gt;
&lt;p&gt;		finally&lt;/p&gt;
&lt;p&gt;			reader.Close()&lt;/p&gt;
&lt;p&gt;		end try&lt;/p&gt;
&lt;p&gt;	End Function&lt;/p&gt;
&lt;p&gt;	Public Function GetAll() as List(of Customer)&lt;/p&gt;
&lt;p&gt;		Dim reader as IDataReader&lt;/p&gt;
&lt;p&gt;		Dim list as new List(of Customer)()&lt;/p&gt;
&lt;p&gt;		reader = DataService.ExecuteReader(&amp;quot;CustomerGetAll&amp;quot;, CommandType.StoredProcedure )&lt;/p&gt;
&lt;p&gt;		Dim entity as Customer&lt;/p&gt;
&lt;p&gt;		while reader.Read()&lt;/p&gt;
&lt;p&gt;			entity = Make(reader)&lt;/p&gt;
&lt;p&gt;			list.Add(entity)&lt;/p&gt;
&lt;p&gt;		end while&lt;/p&gt;
&lt;p&gt;		reader.Close()&lt;/p&gt;
&lt;p&gt;		return list&lt;/p&gt;
&lt;p&gt;	End Function&lt;/p&gt;
&lt;p&gt;	Public Function GetAllAsDs() as DataSet&lt;/p&gt;
&lt;p&gt;		return DataService.ExecuteDataSet(&amp;quot;CustomerGetAll&amp;quot;, CommandType.StoredProcedure )&lt;/p&gt;
&lt;p&gt;	End Function&lt;/p&gt;
&lt;p&gt;	Private Function Make(reader as IDataReader) as Customer&lt;/p&gt;
&lt;p&gt;		Dim entity as new Customer&lt;/p&gt;
&lt;p&gt;		if reader(&amp;quot;Id&amp;quot;) is System.DbNull.Value then&lt;/p&gt;
&lt;p&gt;			entity.Id = 0&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;			entity.Id = CType(reader(&amp;quot;Id&amp;quot;),Integer)&lt;/p&gt;
&lt;p&gt;		end if&lt;/p&gt;
&lt;p&gt;		if reader(&amp;quot;Name&amp;quot;) is System.DbNull.Value then&lt;/p&gt;
&lt;p&gt;			entity.Name = Nothing&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;			entity.Name = CType(reader(&amp;quot;Name&amp;quot;),String)&lt;/p&gt;
&lt;p&gt;		end if&lt;/p&gt;
&lt;p&gt;		if reader(&amp;quot;Address&amp;quot;) is System.DbNull.Value then&lt;/p&gt;
&lt;p&gt;			entity.Address = Nothing&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;			entity.Address = CType(reader(&amp;quot;Address&amp;quot;),String)&lt;/p&gt;
&lt;p&gt;		end if&lt;/p&gt;
&lt;p&gt;		if reader(&amp;quot;Notes&amp;quot;) is System.DbNull.Value then&lt;/p&gt;
&lt;p&gt;			entity.Notes = Nothing&lt;/p&gt;
&lt;p&gt;		else&lt;/p&gt;
&lt;p&gt;			entity.Notes = CType(reader(&amp;quot;Notes&amp;quot;),String)&lt;/p&gt;
&lt;p&gt;		end if&lt;/p&gt;
&lt;p&gt;		return entity&lt;/p&gt;
&lt;p&gt;	End Function&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=999349" width="1" height="1"&gt;</description></item></channel></rss>