Difference between
version 12
and
version 11:
| At line 16 changed 1 line. |
| ;:%%(color: blue)''Te diré como hago las cosas en la práctica .''%% |
| ;:%%(color: blue)''Te diré como hago las cosas en la práctica en esta guia.''%% |
| At line 20 changed 7 lines. |
| !Table of Contents |
| * [1] Create a new Object and add [XDoclet|http://xdoclet.sf.net] tags |
| * [2] Create a new database table from the object using Ant |
| * [3] Create a new DaoTest to run JUnit tests on the DAO |
| * [4] Create a new DAO to perform CRUD on the object |
| * [5] Configure Spring for the Person object and PersonDao |
| * [6] Run the DaoTest |
| !Tabla de contenidos |
| * [1] Creación de un nuevo Objeto y añadir los tags [XDoclet|http://xdoclet.sf.net] |
| * [2] Crear una nueva tabla en la base de datos a partir del objeto recién creado usando Ant |
| * [3] Crear una nueva clase DaoTest que ejecutará los tests JUnit tests en la capa DAO |
| * [4] Crear una nueva clase DAO que ejecute operaciones Anadir/Lectura/Actualización/Borrado del nuevo objeto Person |
| * [5] Configurar Spring para el objeto Person y PersonDao |
| * [6] Ejecutar DaoTest |
| At line 28 changed 1 line. |
| !!Create a new Object and add XDoclet tags [#1] |
| !!Creación de un nuevo Objeto y añadir los tags XDoclet[#1] |
| At line 30 changed 1 line. |
| The first thing we need to do is create an object to persist. Let's create a simple "Person" object (in the src/dao/**/model directory) that has an id, a firstName and a lastName (as properties). |
| Primeramente,necesitamos crear la clase a guardar en la base de datos. Para ello crearemos una clase simple "Person" (en el subdirectorio src/dao/**/model ) que contiene como atributos un id, un firstName y un lastName como atributos. |
Back to CreateDAO_es,
or to the Page History.
|