RSS

Archivo de la etiqueta: STS

JPA basic example with EntityManager , Spring and Maven


Visit my new website http://java4developers.com

In this post we are going to make a project that allows us to get from a mySql database a car list. The technologies we are going to use are Maven for the dependency management, JPA to interact with the database, Spring to define the our application context (besides of wiring everything), and finally we use JUnit to our application tests.

Read the rest of this entry »

 
17 comentarios

Publicado por en 6 julio, 2011 en J2EE, JPA

 

Etiquetas: , , , , , ,

Ejemplo básico JPA con EntityManager , Spring y Maven


En este post vamos a crear un proyecto que nos permita traernos de una base de datos mySql un listado de coches. Las tecnologías que vamos a utilizar son Maven para la gestión de dependencias del proyecto, JPA para interactuar con la base de datos, Spring para definir el contexto de nuestra aplicación además de unir todo, y finalmente JUnit para realizar un test de nuestra aplicación.
Read the rest of this entry »

 
12 comentarios

Publicado por en 4 julio, 2011 en JPA

 

Etiquetas: , , , , , ,

Creating Java domain objects with the Maven Hibernate plugin and Hibernate tools.


Visit my new website http://java4developers.com

This is the second way we mentioned in this parent post of creating java domain objects, or data access objects, mapping files. The Hibernate 3 Maven plugin webpage show us which goals are available for this plugin. In this post we are going to use the following four ones:

  • hibernate3:hbm2cfgxml: Generates hibernate.cfg.xml.
  • hibernate3:hbm2hbmxml: Generates a set of hbm.xml files.
  • hibernate3:hbm2java: Generates Java domain objects.
  • hibernate3:hbm2dao: Generates data access objects.

Read the rest of this entry »

 
5 comentarios

Publicado por en 8 May, 2011 en Hibernate

 

Etiquetas: , , , ,

Creating a new Java project with Maven


We have seen in the last post , An introduction to Maven, an overall perspective about Maven and its main features.

Maven allows us to create a project from either command line or with our prefered IDE. But before starting, it is a good idea remenbering what an archetype is, an archetype is an easy artefact that creates a project’s skeleton (prototype).With Maven we can create new projects through an archetype.
Read the rest of this entry »

 
2 comentarios

Publicado por en 26 abril, 2011 en Maven

 

Etiquetas: , , ,

Creación de un proyecto Java desde Maven


Hemos visto en el anterior post Introducción a Maven un visión general sobre lo que es Maven y sus principales características.

Maven permite crear proyectos desde línea de comandos o bien desde nuestro IDE favorito. Pero antes recordar lo que era un arquetipo, un arquetipo es un artefacto sencillo que contiene el esqueleto (prototipo) de un tipo de proyecto que queremos construir. Maven nos va a facilitar la creación de nuevos proyectos utilizando el concepto de arquetipo.
Read the rest of this entry »

 
2 comentarios

Publicado por en 25 abril, 2011 en Maven

 

Etiquetas: , , ,