RSS

Archivo de la etiqueta: ant

Ejemplo básico con GWT


Tras la breve introducción del post anterior, vamos a hacer un ejemplo básico con GWT. Para ello lo primero que vamos a hacer es instalar el plugin que tiene GWT para Eclipse. Obviamente podemos usar GWT sin necesidad de Eclipse. Para la compilación de una aplicación GWT se utiliza Ant. Podríamos desde línea de comandos compilar y lanzar nuestra aplicación, pero pienso que el uso de Eclipse facilita bastante las cosas. Si quieres echar un vistazo a cómo comenzar, visita la sección de getting started de GWT. Después de instalar el plugin vamos a hacer lo siguiente.

  1. Estudiar los conceptos básicos (ficheros en una aplicación GWT, modos de ejecucción, …) a partir de un proyecto GWT de Google Code.
  2. Crear una interfaz de usuario para nuestra aplicación GWT.
  3. Gestionar los eventos en el cliente.
 
6 comentarios

Publicado por en 21 May, 2011 en GWT

 

Etiquetas: , , , ,

Creating java domain objects from a database with an Ant task and Hibernate tools


This is the third way we mentioned in this parent post of creating java domain objects, or data access objects, mapping files.
We need to create an Ant task within our build.xml file in order to generate our domain objects, daos or xml mapping files.
Once this is done, we have to execute ant hbm (our task name) and our files will be generated. Notice that you need to include a reference to every library we are going to use (hibernate-tools, freemarker, log libraries, …).
Read the rest of this entry »

 
2 comentarios

Publicado por en 8 May, 2011 en Hibernate

 

Etiquetas: , , ,

Using Hibernate tools through Maven and Ant


Hibernate Tools is a toolset for Hibernate3 implemented as an integrated suite of Eclipse plugins, together with a unified Ant task for integration into the build cycle. Hibernate Tools is a core component of JBoss Tools and hence also part of JBoss Developer Studio.

The previous paragraph is the definition of Hibernate tools that you can find in the Hibernate official webpage. This post is going to show you how to generate your domain Java classes from the database schema using 3 different perspectives:

Read the rest of this entry »

 
10 comentarios

Publicado por en 7 May, 2011 en Hibernate

 

Etiquetas: , , , , , ,