In the next two post we are gonna to talk about how develop REST web services with java. To that end we’re gonna use two different technologies, Apache CXF and Spring REST web services.
Continue reading it on Java4Developers
In the next two post we are gonna to talk about how develop REST web services with java. To that end we’re gonna use two different technologies, Apache CXF and Spring REST web services.
Continue reading it on Java4Developers
After the short introduction, server-side RIA framework, we are going to make a our first easy example with Vaadin. As we mentioned in the previous post Vaadin is perfectly integrated with Maven 2. There is a specific Maven 2 archetype for Vaadin which can be found in here Using Vaadin with Maven.
Después de la breve introducción que se dio en server-side RIA framework, vamos a realizar un breve ejemplo con Vaadin que sirva de primera toma de contacto. Como ya contamos en el post anterior Vaadin queda perfectamente integrado con Maven 2. Es más tenemos un arquetipo específico en Maven 2 para Vaadin que podemos encontrar en Using Vaadin with Maven.
In this post we are going to see a Spring Web Flow simple example. For that, we need to use the Java code we talked about in JPA basic example with EntityManager , Spring and Maven and Criteria JPA 2.0 and database metamodel auto generation with Maven. Spring Web Flow allow us to create our own web application in an easy and fast way using flows. Transitions happens from some pages to others depending on which actions are ocurring, as clicking a specified button for example.
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.
Para este post he seguido el artículo Don’t repeat the DAO de Per Mellqvist.
El patrón DAO indica que por cada clase de dominio (entidad) que tengamos necesitamos crear un DAO (Data Access Object) que se encargue de persistir o buscar en base de datos la información. ¿Cuál es el inconveniente?. Pues que para todas las entidades van a existir una serie de operaciones básicas (CRUDs) y operaciones de búsqueda que van a ser comunes para cualquier entidad. En Hibernate podemos solucionar esto en parte utilizando las operaciones de sesión CRUD. El problema de ésto es que perdemos la seguridad de tipos en las operaciones por lo que tendremos que estar continuamente haciendo casting a dichas operaciones.