- First create a directory named mymovy:
K:\sbox>mkdir mymovy
K:\sbox>cd mymovy
K:\sbox\mymovy
- Start Roo in this directory
At the Roo command prompt, enter hint which will provide you the starting steps:
roo> hint
Welcome to Roo! We hope you enjoy your stay!
Before you can use many features of Roo, you need to start a new project.
To do this, type 'project' (without the quotes) and then hit TAB.
Enter a --topLevelPackage like 'com.mycompany.projectname' (no quotes).
When you've finished completing your --topLevelPackage, press ENTER.
...
- Issue project command with topLevelPackage as the package name, in my case: com.madhusudhan.mymovy:
roo> project --topLevelPackage com.madhusudhan.mymovy
Created K:\sbox\mymovy\pom.xml
Created SRC_MAIN_JAVA
Created SRC_MAIN_RESOURCES
Created SRC_TEST_JAVA
Created SRC_TEST_RESOURCES
Created SRC_MAIN_WEBAPP
Created SRC_MAIN_RESOURCES\META-INF\spring
Created SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
Created SRC_MAIN_RESOURCES\META-INF\spring\log4j.properties
com.madhusudhan.mymovy roo>
- Now, setup the persistence. We use In Memory Hypersonic database as our persistence engine. Issue the following command to create the persistence:
Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
Created SRC_MAIN_RESOURCES\META-INF\spring\database.properties
Managed SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
Managed ROOT\pom.xml
- Next step is to create your domain model - entities
No comments:
Post a Comment