Difference between
version 8
and
version 7:
| At line 17 changed 1 line. |
| Let's get started on creating a new Object, DAO and Test in AppFuse's architecture. |
| Vamos começar criando um novo Objeto, DAO, Test na arquitetura AppFuse. |
| At line 19 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 |
| !Tabela de Conteúdo |
| * [1] Criar um novo Objeto e adicionar tags [XDoclet|http://xdoclet.sf.net] |
| * [2] Criar uma nova tabela no banco de dados a partir do objeto, usando Ant |
| * [3] Criar uma nova classe DaoTest para executar testes JUnit no DAO |
| * [4] Criar uma nova classe DAO para efetuar CRUD no objeto |
| * [5] Configurar o framework Spring para o objeto Pessoa e PessoaDAO |
| * [6] Executar o DaoTest |
| At line 27 changed 1 line. |
| !!Create a new Object and add XDoclet tags [#1] |
| !!Criar um novo Objeto e Adicionar tags XDoclet [#1] |
| At line 29 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). |
| A primeira coisa que precisamos fazer é criar um objeto a persistir. Vamos criar um simples objeto Pessoa (no diretório src/dao/**model) que tem um id, primeiroNome e ultimoNome (como propriedades). |
Back to CreateDAO_pt,
or to the Page History.
|