Hello,
I just drop a little post to inform the Vaadin community that
MinuteProject
is going to generate Vaadin oriented artifacts out of an enriched data model.
Currently MinuteProject was generating artifacts for Backend Technologies such as Spring+Hibernate/JPA/iBatis that help the user developping fast applications. It also generates artifacts for Behavior Driven Develop technologies such as FitNesse (a wiki+associated fixtures).
On top of this backend stack and services MinuteProject will generate a Vaadin front end for CRUD operations.
To achieve it, MinuteProject divides the generating aspects in distinct parts:
Templates
You can follow the evolution of the
MinuteProject 4 Vaadin templates
at
http://minuteproject.svn.sourceforge.net/viewvc/minuteproject/trunk/minuteTemplate/template/framework/vaadin/
. Currently is really draft, getting inspiration from the addressBook application tutorial.
Target architecture
Those templates will match Vaadin technologies and also a specific Add-On (for generic aspects). In the first version it will be embedded within MinuteProject deliveries but later will use the Vaadin specific Add-On structure and publish on Vaadin site.
Here is the first location URL on MP svn
http://minuteproject.svn.sourceforge.net/viewvc/minuteproject/trunk/minuteArchitecture/targets/mp-vaadin/
Configuration
The configurations to generate a Vaadin application on top of Spring and Hibernate are at
http://minuteproject.svn.sourceforge.net/viewvc/minuteproject/trunk/minuteKernel/config/
The main configuration
is mp-config-bsla-hibernate-vaadin-last-features.xml
This main configuration holds information relevant to the data model (here the PetShop data model), enriches it (gives the primarykey policy, group table into logical business package …) and also
This config references two target templates one for spring/hibernate and the other for Vaadin
The vaadin specific
one is mp-template-config-vaadin-last-features.xml
Execution
If you want to use it in
development mode
Run a configuration: pass to the net.sf.minuteProject.application.ModelGeneration the arg
“%JAVA_HOME%\bin\java” %CP% net.sf.minuteProject.application.ModelViewGenerator mp-config-bsla-hibernate-vaadin-last-features.xml
Where %CP% contains the libraries of minuteKernel/lib and minuteKernel/lib/extra and MinuteProject Kernel classes.
If you want to use it in
production mode
,
wait a little while for a stable version to be present and you can run it as part of the distribution in the same way as you run the other MP generated artifacts:
in the Release Package go to demo/config and execute the one of the command line according to your need.
demo-fitnesse.cmd
demo-hibernate.cmd
demo-ibatis.cmd
demo-jpa.cmd
demo-last-features.cmd
Here will be present a demo-vaadin.cmd for generating against an enriched PetShop model. The first implementation will be with vaadin-spring-hibernate, but in the future also for vaadin-spring-jpa.
Florian.