Thursday 28 February 2013

Vaadin + Spring Roo Basic Project Setup

Vaadin Install Addon Commands(Tested on Spring roo 1.2.2)

Download Spring roo 1.2.2 / and STS latest version 

Run the following commands to install vaadin addon in spring roo

osgi obr url add --url http://vaadin.com/springroo/repository.xml
osgi obr start --bundleSymbolicName com.vaadin.spring.roo.addon
osgi obr url remove --url http://vaadin.com/springroo/repository.xml
osgi obr url add --url http://spring-roo-os-commands.googlecode.com/svn/repo/repository.xml
osgi obr start --bundleSymbolicName net.stsmedia.roo.addon.oscommands
osgi obr url remove --url http://spring-roo-os-commands.googlecode.com/svn/repo/repository.xml

Create Vaadin + Spring Roo Project

1. create spring roo from sts / command line

project --topLevelPackage org.szanto --projectName vaadin-roo-example --java 6

2. Database setup

jpa setup --provider HIBERNATE --databaseName test--userName root --password root --database MYSQL 

3. Create Entity

entity jpa --class ~.server.domain.Employee--testAutomatically  

4. Add attributes to entity

field string description 

5. Vaadin project setup and create UI

vaadin setup --applicationPackage ~.web 

vaadin generate all -pakage ~.web.ui













No comments:

Post a Comment