MinuteProject 4 Vaadin

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.

Hello,

Here is a follow-up of MinuteProject 4 Vaadin generation.

Release 0.4.3 of MinuteProject is shipped with a demo that generates Vaadin releated artifact against a Petshop database store in Hsqldb.
The goal of this first release was to check the feasibility to have a fully generated front-end (vaadin) that integrates with a back-end (spring/hibernate) with MinuteProject and adapt the kernel otherwise.
Currently the generated artifacts allow browsing data of the Petshop DB.

To run it:
For the short story:

  • Download MinuteProject 0.4.3+
  • run start-petshop-database.bat in /sample
  • run demo-draft-features-vaadin-spring-hibernate.cmd in /demo/config

The generation should take between 0.5s to couple of seconds.

The output artifacts are in /output/petshopHibernate and /output/petshopHibernate

For further details related to integration and/or longer story, please go to
MinuteProject on wikispaces
.

The generated artifacts are still
draft
, evolving with my knowledge of Vaadin.
There are located in the /template/framework/vaadin
Those templates are written in velocity.
You can adapt them and regenerate to view your modifications.

To improve the functionalities, the architecture, the templating, I am listening to your feed back and suggestions.

Florian.

Nice!! I generated the Vaadin-Spring-Hibernate Petshore demo app, and when running it from Eclipse, I face with some incompletes features. I’m doing some mistake??

Widget set is built on version: 6.7.2

Warning: widgetset version 6.7.2 does not seem to match theme version
:frowning: