Created
February 15, 2013 14:39
-
-
Save sebastienblanc/4960762 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new-project --named scaffoldagtesters; | |
persistence setup --provider HIBERNATE --container JBOSS_AS7; | |
validation setup --provider JAVA_EE; | |
entity --named Customer; | |
field string --named firstName; | |
field temporal --type DATE --named dateOfBirth; | |
entity --named DiscountVoucher; | |
field string --named voucherCode; | |
entity --named StoreOrder; | |
field string --named product; | |
field int --named amount; | |
constraint Min --onProperty amount --min 1; | |
constraint Max --onProperty amount --max 50; | |
field string --named remarks; | |
constraint Size --onProperty remarks --max 100; | |
field manyToOne --named customer --fieldType com.example.scaffoldagtesters.model.Customer.java; | |
field oneToOne --named voucher --fieldType com.example.scaffoldagtesters.model.DiscountVoucher.java; | |
@/*cd ../Customer.java*/; | |
@/*field oneToMany --named orders --fieldType com.example.scaffoldagtesters.model.StoreOrder.java*/; | |
rest setup --activatorType WEB_XML; | |
rest endpoint-from-entity --contentType application/json com.example.scaffoldagtesters.model.*; | |
scaffold setup --scaffoldType html5; | |
scaffold from-entity com.example.scaffoldagtesters.model.*; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment