If you're building web applications and you haven't investigated Maypole yet then I strongly recommend that you do so. It will save you a lot of time.
Currently I've got a web front end to an application that lets you define the entities for other web applications. A bit of TT magic then goes off and defines the Maypole classes needed to implement these other apps.
It's all rather fun.