Hi Tim,
Yeah, this feature has been discussed but never implemented. I thought
there was even such task in JIRA issue tracker, but I can't seem to
find it now.
I can guess why so few people actually cared about this feature -
default DataMap is a good start, but most people like to customize it
further (i.e. "flatten" many-to-many relationships, remove unneeded
object relationships, etc.) So doing an automatic DB regeneration run
may produce a nice first cut of the mapping, but not the desired end
result.
Don't get me wrong - I am all for this feature, and we should put it on
our roadmap for the 1.2 (or maybe 1.1.1) release, especially since it
is so trivial to implement.
Andrus
On Aug 30, 2004, at 12:23 PM, Timothy Fisher wrote:
> Let me explain the scenario in which this would be of value a little
> better:
>
> I believe there are many teams who like Cayenne, but do not want to
> use the Cayenne Modeler UI as their data modeling tool. Instead they
> may be making changes to a database schema outside of Cayenne through
> a standard process. Now without this Ant task that I am asking about,
> in order to update your Cayenne datamap you have to either manually
> edit the datamap files, or go into the Cayenne Modeler UI and
> regenerate your datamap from the updated schema. If this datamap
> generation could be done through an Ant task, this manual step would
> be eliminated for those who are not using the Cayenne Modeler as their
> data modeling tool.
>
> I really strongly beleive that the addition of this one feature would
> make Cayenne a much more popular tool in corporate environments.
> Simply because many of these large corporate environment do not want
> to replace their existing database modeling tools and processes with
> the Cayenne tool. This Ant task would allow these corporations to fit
> Cayenne more seamlessly into their processes.
>
> Tim
>
> Timothy Fisher <trfisherm..ahoo.com> wrote:
> Has anyone created an Ant task for the generation of the Cayenne
> datamap?
>
> I know this question was asked late last year, but at the time there
> were no implementations.
>
> I'm surprised there have not been more requests for this. To me this
> seems like it would be a tremendous value add and very useful for
> Cayenne.
>
> The Ant task I am envisioning would allow you to automatically create
> the datamap at build time from your database schema, much the way the
> Cayenne modeler generates the datamap through the GUI. This would
> eliminate the dependence on the GUI for this task.
>
> Timothy Fisher
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
This archive was generated by hypermail 2.0.0 : Mon Aug 30 2004 - 20:29:22 EDT