cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Re: [jira] Commented: (CAY-762) ERDiagram for Object Entities in Cayenne Modeler
Date Thu, 03 Dec 2009 14:30:37 GMT
We can have some check box "save graph changes" for every graph. by default
it is false, and turns on if there were major changes (e.g. entity added) or
checked manually. Minor changes (entity moved, resized, etc) will not be
saved by default.
Anyways, I think this task is not of highest priority, and we need more
opinions to take decision

2009/12/3 Mike Kienenberger <mkienenb@gmail.com>

> I agree with Andrey.   It should be saved as part of the project.  It
> doesn't make any sense to have a project-specific piece of information
> stored in preferences.  If you copy your project to another machine,
> you lose the information.  If you delete the project, the information
> remains in preferences even though the project is gone.
>
> You should mark it as ignored if you don't want to put it in your SCM
> or if the noise bothers you.
>
>
> On Thu, Dec 3, 2009 at 9:03 AM, Andrus Adamchik <andrus@objectstyle.org>
> wrote:
> > I agree with the premise, but I had bad experience with other ORM tools
> > years ago that would save the layout together with the project, and then
> a
> > single unintended mouse move results in making the project "dirty" and
> > creates an underlying SCM change. IMO that was a distraction and created
> > constant commit noise.
> >
> > So essentially managing a pretty layout is a parallel task to the main
> task
> > of creating a model, and I don't want it to become a distraction. So
> maybe
> > we can make it a project property (persist-layout: true|false (default))?
> If
> > true, it will store the XML together with the project, if false, it will
> > store it in local preferences?
> >
> > Andrus
> >
> >
> > On Dec 3, 2009, at 3:47 PM, Andrey Razumovsky wrote:
> >>
> >> 2009/12/3 Andrus Adamchik <andrus@objectstyle.org>
> >>
> >>>
> >>> On Dec 3, 2009, at 3:31 PM, Andrus Adamchik wrote:
> >>>
> >>> * saving graphs info as <domain_name>.graph.xml (and restoring). Note
> >>> that
> >>>>>
> >>>>> this file will not be used in classic Cayenne runtime
> >>>>>
> >>>>
> >>> I think this can be tied to preferences and saved in ~/.cayenne/.
> Saving
> >>> it
> >>> in the project tree has SCM implications.
> >>>
> >>>
> >> I thought of that..
> >> Lets take your example. You've got an enormous project, so no layout can
> >> place entities without intersections. You spend half a day to organize
> it
> >> well.. Then what? How can other members of the team see your changes? It
> >> is
> >> even better when graph is in SCM - it is not a big file, and allows
> >> everyone
> >> to see it. Graph file is XML, so SVN should merge it correctly. The only
> >> thing you need is exclude it from packaged version of your project (if
> you
> >> want).
> >>
> >> At last resort you can add graph files to something like svn:ignore
> >
> >
>



-- 
Andrey

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message