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 »
Me gusta:
Me gusta Cargando...
Etiquetas: EntityManager, Hibernate, JPA, Junit, Maven, Spring, STS
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 »
Me gusta:
Me gusta Cargando...
Etiquetas: Hibernate, hibernate tools, Java, Maven, STS
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 »
Me gusta:
Me gusta Cargando...
Etiquetas: Eclipse, Java, Maven, STS
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 »
Me gusta:
Me gusta Cargando...
Etiquetas: Eclipse, Java, Maven, STS