Spring Roo Using Existing Oracle Database

I have tested this in both Spring Roo 1.1.1 and 1.1.4.
  • create new Root project: Project name: wedding2; 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
  • 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
  • controller scaffold ~.web.RsvpController
  • add wedding2 project into server, and start server
  • http://localhost:8080/wedding2