- create new Root project: Project name: weddingFlex; Top Level: com.wedding
- open roo shell
- persistence setup --provider HIBERNATE --database ORACLE --databaseName XE --userName practice_db --password secret
- change <property name="hibernate.hbm2ddl.auto" value="create"/> to <property name="hibernate.hbm2ddl.auto" value="update"/> in /src/main/resources/META-INF/persistence.xml
- flex setup
- entity --class ~.domain.Rsvp
- field string code --notNull --sizeMin 1 --sizeMax 30
- field string email --sizeMax 30
- field number attending --type java.lang.Integer
- field string specialRequests --sizeMax 100
- field date confirmed --type java.util.Date
- flex remoting all --package ~.service
- add weddingFlex project into server, and start server
- http://localhost:8080/weddingFlex/weddingFlex_scaffold.html
Spring Roo Flex Using Existing Oracle Database
Labels:
Spring-Roo