Lift scaffolding from existing database
Upcoming SlideShare
Loading in...5
×
 

Lift scaffolding from existing database

on

  • 2,027 views

 

Statistics

Views

Total Views
2,027
Slideshare-icon Views on SlideShare
2,027
Embed Views
0

Actions

Likes
1
Downloads
19
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Lift scaffolding from existing database Lift scaffolding from existing database Presentation Transcript

    • Lift Scaffolding from existing database [email_address]
    • Goal
      • Ease the “ getting started ” step when migrating from Java to Scala
        • A lot of the legacy is in the Database
      • Among many alternatives, choose one that fits java programmers with a stack they are familiar with:
        • demo based on the Lift JPA sample application
      Page 
    • Scala-tools repository http://www.scala-tools.org/repo-releases/net/liftweb/
        • lift-archetype-basic
        • lift-archetype-blank
        • lift-archetype-hellolift
        • lift-archetype-jpa-basic
        • lift-archetype-sbt
        • lift-archetype-jpa-blank
        • lift-archetype-jpa-blank-single
      Page 
    • Scala FARM (Framework for Automatic Relational Mapping)
      • Features:
      • DOG: Domain Object Generator for JPA compliant entities (one class per table)
      • CAT:
        • Testdata by extracting database data into XML files
        • Test code to create a lift database for your integration tests
      • COW: Lift scaffolding i.e. snippets for CRUD with their corresponding HTML views (list, add, search)
      • MOUSE: Model classes containing common Sql Queries
      • Third parties: s calate, configgy, dbunit
      Page 
    • Live coding Page 
    • ROADMAP Page 
    • Support Other Frameworks
      • Play
      • Bowler
      • A kka-based, e.g. Spray
      • Blueeyes
      Page 
    • Create own mappings Page 
    • Refactoring
      • Groovy SQL API:
        • Sql.eachRow(GString gstring,Closure metaClosure, Closure rowClosure)
      • Scala:
      Page 
    • Refactoring, imperative style Page 
    • Functional Page 
    • Functional with defaults Page 
    • Usage of eachRow(resultSet,metaClosure,rowClosure) Page 
    • Page  ? Do You Have Any Questions? ? ?
      • https ://github.com/ThomasAlexandre/scalafarm.git
    • list.scaml Page 
    • Domain Entity Page 
    • Scalate Template for Domain Entities Page  etc…