SlideShare a Scribd company logo
Miguel PingIntroduction to Grails Framework18/03/2010
Small Introduction on Groovy
Grails
Grails = Groovy on (G)Rails
Grails is MVC
Powered by Spring and Hibernate
Model/Domain Layer
View Layer
Controllers
DemoAgenda
Groovy+=
Java ClasspublicclassHelloWorld {privateString name;publicvoidsetName(String name) {this.name = name;  }publicStringgetName() {return name;  }publicStringgreet() {return"Hello "+ name;  }publicstaticvoidmain(String[] args) {HelloWorldhelloWorld=newHelloWorld();helloWorld.setName("Groovy");System.out.println(helloWorld.greet());  }}
Groovy ClasspublicclassHelloWorld {privateString name;publicvoidsetName(String name) {this.name = name;  }publicStringgetName() {return name;  }publicStringgreet() {return"Hello "+ name;  }publicstaticvoidmain(String[] args) {HelloWorldhelloWorld=newHelloWorld();helloWorld.setName("Groovy");System.out.println(helloWorld.greet());  }}
Multiple classes per file, or even no classes at all (scripts)
Public unless defined otherwise
Getters and Setters by default
String interpolation
Semicolons are optional
Type declarations are optional
Return keyword is optionalGroovy Featuresclass HelloWorld {def namedefgreet() { "Hello ${name}" }}helloWorld =newHelloWorld(name: "Groovy")println helloWorld.greet()
Dynamic language (everything happens at runtime)
Dynamically typed (types are “optional”)
Closures
Anonymous Inner Classes (recently)
Meta Object Protocol
Hence, MetaClasses and all the magic
Compiles down to bytecode

More Related Content

PPT
Introduction to Grails
NexThoughts Technologies
 
PPT
Succesfactors demo
Verity Solutions
 
PDF
Azure for SAP Solutions - Use Cases and Migration Options
myCloudDoor
 
PPTX
SAP Governance,Risk and Compliance
TLI GrowthSession
 
PPTX
SAP GRC AC 10.1 - ARM Workflows
Rohan Andrews
 
PDF
SolMan CHARM Webinar
Wise Men
 
PPTX
SuccessFactors Employee Central
Carlo Neto
 
PPTX
SAP ARCHITECTURE (I).pptx
Temitope Fagbuyi
 
Introduction to Grails
NexThoughts Technologies
 
Succesfactors demo
Verity Solutions
 
Azure for SAP Solutions - Use Cases and Migration Options
myCloudDoor
 
SAP Governance,Risk and Compliance
TLI GrowthSession
 
SAP GRC AC 10.1 - ARM Workflows
Rohan Andrews
 
SolMan CHARM Webinar
Wise Men
 
SuccessFactors Employee Central
Carlo Neto
 
SAP ARCHITECTURE (I).pptx
Temitope Fagbuyi
 

What's hot (20)

PPTX
Mainframe – CONTROL-M
Srinimf-Slides
 
PPT
Successfactors ec concepts
Verity Solutions
 
PDF
Successfactor mastery
Hitesh Gulani
 
ODP
Java Web Programming [1/9] : Introduction to Web Application
IMC Institute
 
PPT
Succesfactors Concepts
Hari P Rao
 
PDF
Abap sample code
roymat2
 
PDF
successfactors with sap HCM.pdf
Mohammed Ahmed
 
PPTX
SAP Security & GRC Framework
Harish Sharma
 
PDF
Sap basis-notes-keylabs-training
nanda nanda
 
PDF
Introduction to SAP Security
Nasir Gondal
 
PPTX
DAX and Power BI Training - 004 Power Query
Will Harvey
 
PDF
Groovy Tutorial
Paul King
 
PPT
SAP ABAP - Needed Notes
Akash Bhavsar
 
PDF
Introduction to Java 11
Knoldus Inc.
 
DOCX
Scheduling bods jobs sequentially and conditionally
Chandra Reddy
 
PPTX
SAP HANA Overview
Manjunath Pathapadu
 
PDF
VoltDB 소개
Linux Foundation Korea
 
PPT
Tableau PPT.ppt
eMMAY3
 
DOCX
SAP Security important Questions
Ragu M
 
PPT
Hibernate
Ajay K
 
Mainframe – CONTROL-M
Srinimf-Slides
 
Successfactors ec concepts
Verity Solutions
 
Successfactor mastery
Hitesh Gulani
 
Java Web Programming [1/9] : Introduction to Web Application
IMC Institute
 
Succesfactors Concepts
Hari P Rao
 
Abap sample code
roymat2
 
successfactors with sap HCM.pdf
Mohammed Ahmed
 
SAP Security & GRC Framework
Harish Sharma
 
Sap basis-notes-keylabs-training
nanda nanda
 
Introduction to SAP Security
Nasir Gondal
 
DAX and Power BI Training - 004 Power Query
Will Harvey
 
Groovy Tutorial
Paul King
 
SAP ABAP - Needed Notes
Akash Bhavsar
 
Introduction to Java 11
Knoldus Inc.
 
Scheduling bods jobs sequentially and conditionally
Chandra Reddy
 
SAP HANA Overview
Manjunath Pathapadu
 
VoltDB 소개
Linux Foundation Korea
 
Tableau PPT.ppt
eMMAY3
 
SAP Security important Questions
Ragu M
 
Hibernate
Ajay K
 
Ad

Viewers also liked (7)

PDF
Grails Simple Login
moniguna
 
PDF
Application Architectures in Grails
Peter Ledbrook
 
PDF
Grails Overview
Christopher Bartling
 
PPT
Grails Connecting to MySQL
ashishkirpan
 
PPT
Introduction to Grails
Hiten Pratap Singh
 
PPT
Groovy presentation
Manav Prasad
 
PDF
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Christopher Bartling
 
Grails Simple Login
moniguna
 
Application Architectures in Grails
Peter Ledbrook
 
Grails Overview
Christopher Bartling
 
Grails Connecting to MySQL
ashishkirpan
 
Introduction to Grails
Hiten Pratap Singh
 
Groovy presentation
Manav Prasad
 
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Christopher Bartling
 
Ad

Similar to Introduction to Grails Framework (20)

PPT
Grails Introduction - IJTC 2007
Guillaume Laforge
 
ODP
Grails 0.3-SNAPSHOT Presentation WJAX 2006 English
Sven Haiges
 
PPT
Introduction To Grails
Christopher Bartling
 
ODP
Agile web development Groovy Grails with Netbeans
Carol McDonald
 
PPT
JavaOne 2008 - TS-5764 - Grails in Depth
Guillaume Laforge
 
PPTX
Introduction to Grails 2013
Gavin Hogan
 
ODP
SVCC Intro to Grails
James Williams
 
PDF
Grails
Gabriel Dogaru
 
POT
intoduction to Grails Framework
Harshdeep Kaur
 
PPT
Introduction To Groovy 2005
Tugdual Grall
 
PPT
Groovy & Grails: Scripting for Modern Web Applications
rohitnayak
 
PDF
Groovy - Grails as a modern scripting language for Web applications
IndicThreads
 
PDF
Grails 101
David Jacobs
 
PPT
Fast web development using groovy on grails
Anshuman Biswal
 
PDF
Grails Launchpad - From Ground Zero to Orbit
Zachary Klein
 
ODP
Groovy and Grails intro
Miguel Pastor
 
PPT
JavaOne 2008 - TS-5793 - Groovy and Grails, changing the landscape of Java EE...
Guillaume Laforge
 
PPTX
Spring Northwest Usergroup Grails Presentation
ajevans
 
ODP
Groovygrailsnetbeans 12517452668498-phpapp03
Kevin Juma
 
KEY
Introduction To Grails
Eric Berry
 
Grails Introduction - IJTC 2007
Guillaume Laforge
 
Grails 0.3-SNAPSHOT Presentation WJAX 2006 English
Sven Haiges
 
Introduction To Grails
Christopher Bartling
 
Agile web development Groovy Grails with Netbeans
Carol McDonald
 
JavaOne 2008 - TS-5764 - Grails in Depth
Guillaume Laforge
 
Introduction to Grails 2013
Gavin Hogan
 
SVCC Intro to Grails
James Williams
 
intoduction to Grails Framework
Harshdeep Kaur
 
Introduction To Groovy 2005
Tugdual Grall
 
Groovy & Grails: Scripting for Modern Web Applications
rohitnayak
 
Groovy - Grails as a modern scripting language for Web applications
IndicThreads
 
Grails 101
David Jacobs
 
Fast web development using groovy on grails
Anshuman Biswal
 
Grails Launchpad - From Ground Zero to Orbit
Zachary Klein
 
Groovy and Grails intro
Miguel Pastor
 
JavaOne 2008 - TS-5793 - Groovy and Grails, changing the landscape of Java EE...
Guillaume Laforge
 
Spring Northwest Usergroup Grails Presentation
ajevans
 
Groovygrailsnetbeans 12517452668498-phpapp03
Kevin Juma
 
Introduction To Grails
Eric Berry
 

More from PT.JUG (20)

PDF
Overview of Eclipse technologies
PT.JUG
 
PDF
Putting Hypermedia Back in REST with JAX-RS
PT.JUG
 
PDF
Microservices
PT.JUG
 
PDF
Useful Design Patterns for Enterprise Applications with Java
PT.JUG
 
PDF
Flame Graphs, uma (boa) alternativa para profiling de apps Java
PT.JUG
 
PDF
What's Coming in Java EE 8
PT.JUG
 
PDF
An Introduction to Play 2 Framework
PT.JUG
 
PDF
MySQL
PT.JUG
 
PDF
Introducing Java 8
PT.JUG
 
PDF
JMockit & Hamcrest
PT.JUG
 
PDF
Apache Camel
PT.JUG
 
PDF
Using JPA applications in the era of NoSQL: Introducing Hibernate OGM
PT.JUG
 
PDF
Introducing Infinispan
PT.JUG
 
PDF
To SOA or not to SOA
PT.JUG
 
ODP
Apresentação LifeRay
PT.JUG
 
PPT
Oracle Java Strategy Lg V3
PT.JUG
 
PDF
Scripting na JVM
PT.JUG
 
PDF
The tale of the Fénix architecture
PT.JUG
 
PDF
Lightweight Grids With Terracotta
PT.JUG
 
PDF
Google Web Toolkit
PT.JUG
 
Overview of Eclipse technologies
PT.JUG
 
Putting Hypermedia Back in REST with JAX-RS
PT.JUG
 
Microservices
PT.JUG
 
Useful Design Patterns for Enterprise Applications with Java
PT.JUG
 
Flame Graphs, uma (boa) alternativa para profiling de apps Java
PT.JUG
 
What's Coming in Java EE 8
PT.JUG
 
An Introduction to Play 2 Framework
PT.JUG
 
MySQL
PT.JUG
 
Introducing Java 8
PT.JUG
 
JMockit & Hamcrest
PT.JUG
 
Apache Camel
PT.JUG
 
Using JPA applications in the era of NoSQL: Introducing Hibernate OGM
PT.JUG
 
Introducing Infinispan
PT.JUG
 
To SOA or not to SOA
PT.JUG
 
Apresentação LifeRay
PT.JUG
 
Oracle Java Strategy Lg V3
PT.JUG
 
Scripting na JVM
PT.JUG
 
The tale of the Fénix architecture
PT.JUG
 
Lightweight Grids With Terracotta
PT.JUG
 
Google Web Toolkit
PT.JUG
 

Recently uploaded (20)

PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Doc9.....................................
SofiaCollazos
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Software Development Methodologies in 2025
KodekX
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 

Introduction to Grails Framework

Editor's Notes

  • #5: Similarities to Jboss SeamWe can see by this slide the commands syntax
  • #6: Some constraints are mapped to DB constraints, although when removing a constraint grails do not remove the correspondent db constraint.
  • #7: Intro to taglib, grails style. Mapping to closure. Almost no need for code in gsp.
  • #8: Explain that Grails is Action-First
  • #9: Talk about maturity
  • #10: Faltou falar de: Ambientes, Testes, Scripts, GORM criteria, DSL para beans spring, Plugin Migrações
  • #11: Configuration Files