Tutorial De Grails

Páginas: 59 (14594 palabras) Publicado: 24 de agosto de 2011
Table of contents

See the light - agile, industrial strength, rapid web application development made easy

1

The Grails Framework - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith Version: 1.3.7

Table of Contents
1. Introduction 2. Getting Started 2.1 Downloading and Installing 2.2 Upgrading from previous versions ofGrails 2.3 Creating an Application 2.4 A Hello World Example 2.5 Getting Set-up in an IDE 2.6 Convention over Configuration 2.7 Running an Application 2.8 Testing an Application 2.9 Deploying an Application 2.10 Supported Java EE Containers 2.11 Generating an Application 2.12 Creating Artefacts 3. Configuration 3.1 Basic Configuration 3.1.1 Built in options 3.1.2 Logging 3.1.3 GORM 3.2Environments 3.3 The DataSource 3.3.1 DataSources and Environments 3.3.2 JNDI DataSources 3.3.3 Automatic Database Migration 3.3.4 Transaction-aware DataSource Proxy 3.4 Externalized Configuration 3.5 Versioning 3.6 Project Documentation 3.7 Dependency Resolution 3.7.1 Configurations and Dependencies 3.7.2 Dependency Repositories 3.7.3 Debugging Resolution 3.7.4 Inherited Dependencies 3.7.5 ProvidingDefault Dependencies 3.7.6 Dependency Reports 3.7.7 Plugin JAR Dependencies

2

3.7.8 Maven Integration 3.7.9 Deploying to a Maven Repository 3.7.10 Plugin Dependencies 4. The Command Line 4.1 Creating Gant Scripts 4.2 Re-using Grails scripts 4.3 Hooking into Events 4.4 Customising the build 4.5 Ant and Maven 5. Object Relational Mapping (GORM) 5.1 Quick Start Guide 5.1.1 Basic CRUD 5.2 DomainModelling in GORM 5.2.1 Association in GORM 5.2.1.1 Many-to-one and one-to-one 5.2.1.2 One-to-many 5.2.1.3 Many-to-many 5.2.1.4 Basic Collection Types 5.2.2 Composition in GORM 5.2.3 Inheritance in GORM 5.2.4 Sets, Lists and Maps 5.3 Persistence Basics 5.3.1 Saving and Updating 5.3.2 Deleting Objects 5.3.3 Understanding Cascading Updates and Deletes 5.3.4 Eager and Lazy Fetching 5.3.5 Pessimistic andOptimistic Locking 5.3.6 Modification Checking 5.4 Querying with GORM 5.4.1 Dynamic Finders 5.4.2 Criteria 5.4.3 Hibernate Query Language (HQL) 5.5 Advanced GORM Features 5.5.1 Events and Auto Timestamping 5.5.2 Custom ORM Mapping 5.5.2.1 Table and Column Names 5.5.2.2 Caching Strategy 5.5.2.3 Inheritance Strategies 5.5.2.4 Custom Database Identity 5.5.2.5 Composite Primary Keys 5.5.2.6 DatabaseIndices

3

5.5.2.7 Optimistic Locking and Versioning 5.5.2.8 Eager and Lazy Fetching 5.5.2.9 Custom Cascade Behaviour 5.5.2.10 Custom Hibernate Types 5.5.2.11 Derived Properties 5.5.2.12 Custom Naming Strategy 5.5.3 Default Sort Order 5.6 Programmatic Transactions 5.7 GORM and Constraints 6. The Web Layer 6.1 Controllers 6.1.1 Understanding Controllers and Actions 6.1.2 Controllers and Scopes6.1.3 Models and Views 6.1.4 Redirects and Chaining 6.1.5 Controller Interceptors 6.1.6 Data Binding 6.1.7 XML and JSON Responses 6.1.8 More on JSONBuilder 6.1.9 Uploading Files 6.1.10 Command Objects 6.1.11 Handling Duplicate Form Submissions 6.1.12 Simple Type Converters 6.2 Groovy Server Pages 6.2.1 GSP Basics 6.2.1.1 Variables and Scopes 6.2.1.2 Logic and Iteration 6.2.1.3 Page Directives6.2.1.4 Expressions 6.2.2 GSP Tags 6.2.2.1 Variables and Scopes 6.2.2.2 Logic and Iteration 6.2.2.3 Search and Filtering 6.2.2.4 Links and Resources 6.2.2.5 Forms and Fields 6.2.2.6 Tags as Method Calls 6.2.3 Views and Templates 6.2.4 Layouts with Sitemesh 6.2.5 Sitemesh Content Blocks 6.2.6 Making Changes to a Deployed Application 6.2.7 GSP Debugging

4

6.3 Tag Libraries 6.3.1 Variables andScopes 6.3.2 Simple Tags 6.3.3 Logical Tags 6.3.4 Iterative Tags 6.3.5 Tag Namespaces 6.3.6 Using JSP Tag Libraries 6.3.7 Tag return value 6.4 URL Mappings 6.4.1 Mapping to Controllers and Actions 6.4.2 Embedded Variables 6.4.3 Mapping to Views 6.4.4 Mapping to Response Codes 6.4.5 Mapping to HTTP methods 6.4.6 Mapping Wildcards 6.4.7 Automatic Link Re-Writing 6.4.8 Applying Constraints 6.4.9...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Grails
  • Tutoriales
  • tutorial
  • Tutorial
  • Tutorial
  • Tutorial
  • Tutoriales
  • Tutorial

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS