Skip to content

Commit

Permalink
Added cloudrating.fsh to showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 21, 2012
1 parent f8f6ed1 commit c4b9725
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions showcase/cloudrating.fsh
@@ -0,0 +1,44 @@
@/* Why: What is the most expensive and painful part of software development? */;
@/* How: Google for answers, blogs, experiment. */;
@/* What: Forge streamlines technology integrations to provide a repeatable, testable, productive programming model tool.*/;


new-project;

set ACCEPT_DEFAULTS true;
persistence setup --provider HIBERNATE --container JBOSS_AS7;

entity --named Conference;
field string --named name;
field temporal --type DATE --named beginDate;
field temporal --type DATE --named endDate;

@/* Explain round tripping / full parsing */;

entity --named Session;
field manyToOne --named conference --fieldType ~.model.Conference.java --inverseFieldName sessions;
field string --named title;
field string --named description;

entity --named SessionReview;
field manyToOne --named session --fieldType ~.model.Session.java --inverseFieldName reviews;
field string --named reviewerName;
field int --named rating;
field string --named comments;

entity --named Speaker;
field string --named name;
field string --named company;
field string --named website;
field string --named twitter;
field oneToMany --named sessions --fieldType ~.model.Session.java --inverseFieldName speaker;

cd ~~;
build;

scaffold setup;
scaffold from-entity ~.model.*;

build;

set ACCEPT_DEFAULTS false;

0 comments on commit c4b9725

Please sign in to comment.