Hello, I'm thinking to use cayenne in conjunction with vaadin (http://vaadin.com).

I'm trying to use some kind of tight integration between both frameworks (defining cayenne generated classes which are vaadin data models implementations). That way I could define forms directly on data objects, querying & mutating its state directly from vaadin widgets. As vaadin is an stateful web framework, should I have to expect for some kind of problem with data objects between requests? I mean, the data objects will reside at the http session, and will be used directly by the vaadin widgets, does this kind of cayenne data objects "use" could arrive with attaching/detaching problems?

Also, is there a way to add metadata info in cayenne metamodel? I would like to add constraints / validations to generated classes, so they can be used to define searching criterias on indexed attributes (something like active-records class filters, but only on indexed properties) and generate model validations on properties so they can be used at UI fields directly, facilitating the app development.

Finally, I'm looking for a multitenant implementation to use, and I believe that the solution pointed at http://blog.jerodsanto.net/2011/07/building-multi-tenant-rails-apps-with-postgresql-schemas/ could be also used with cayenne; is there any constraint I should look for?

Best regards
Juanjo

ps: pardon my really poor English! :P

Reply via email to