Trails (http://www.trailsframework.org/) offers something similar to this;
basically Trails is about model-driven design. You only need to create your
domain entities (like blog post and comment as in your example) and the
framework creates both the frontend and database from it, both of which you
can then customize later. A version for T4.x has been available and in use
for a few years, T5 compatible version is in development; no snapshots
available but the early example are functional if you check out the trunk.

Kalle


On Wed, Jan 7, 2009 at 5:31 AM, Sid Ferreira <sid....@gmail.com> wrote:

> Hi all!Few days ago I've met Tapestry in wikipedia... After it, Ive joined
> the #tapestry @ freenode trying to know more about the technology.
>
> I've been talking with Fanf about how tapestry works and got really
> interested on it, but once Im coming from PHP/Symfony, I obviously found
> some things that I would love to have.
>
> I can't agree that a powerfull tool must abandon ease of use, so, Im
> wandering:
> Symfony and Ruby have some easy generators... Based in symfony, we can
> really easilly create the basics of a full application in 5 minutes
> (really).
> Using propel, we can (based in a xml/yml file) generate models and database
> with one command in the shell. With another, we can generate the basic CRUD
> module of this model, with basic database connections and queries.
>
> So, im wandering if is there a way to have it in java?
>
> Here, a small sample of a blog in symfony
>
> mkdir demo
>
> cd projeto
>
> symfony generate:project Demo
>
> symfony generate:app frontend
>
> symfony configure:database dsn="dbname=test host=localhost" root null
>
> in config/schema.yml:
>
> ===============
>
> propel:
>
>  posts:
>
>    id: ~
>
>    text: { type: longvarchar }
>
>    created_at: ~
>
>  comments:
>
>    id: ~
>
>    post_id: { type: integer, foreignTable: posts, foreignColumn: id,
> > required: true }
>
>    email: { type: varchar(64) }
>
>    comment: { type: varchar(256) }
>
>    created_at: ~
>
> ===============
>
> symfony propel:build-all
>
> symfony propel:generate-module frontend posts Posts
>
> symfony propel:generate-module frontend comments Comments
>
> in apps/frontend/config/routing.yml: the module in homepage change from
> > default to posts
>
> symfony cc
>
> localhost/demo/web
>
>
> It's not tested, but create database connections, crud, models and stuff.
> Pretty easy... Do Tapestry offer something like that?
>
> Thanks.
>

Reply via email to