forked from spring-attic/spring-flex-roo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrootunes.roo
More file actions
17 lines (17 loc) · 792 Bytes
/
rootunes.roo
File metadata and controls
17 lines (17 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
project --topLevelPackage org.example.rootunes
persistence setup --provider HIBERNATE --database H2_IN_MEMORY
flex setup
entity --class ~.domain.Artist
field string --fieldName name --notNull
entity --class ~.domain.Album
field string --fieldName title --notNull
field number --fieldName numberOfTracks --type java.lang.Integer --notNull --min 1
field date --fieldName releaseDate --type java.util.Date --notNull
field reference --fieldName artist --type ~.domain.Artist
flex remoting all --package ~.service
entity --class ~.domain.Song
field string --fieldName title --notNull
field boolean --fieldName explicitLyrics
field number --fieldName runningLength --type java.lang.Float
flex remoting scaffold --name ~.service.SongService
field reference --fieldName album --type ~.domain.Album