cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: DBSchema migration
Date Tue, 11 Oct 2011 19:52:39 GMT
Thanks, I'm just looking at this.  Could you provide MergerTokenComparator
as well or describe what it does?

John

On Fri, Oct 7, 2011 at 6:19 PM, Dave Lamy <davelamy@gmail.com> wrote:

> Sure, here's a snippet.  This iterates through all nodes/maps in a
> DataDomain and executes the merge.  Note that it has logic to a) only
> execute changes toward the DB (instead of updating the cayenne objects
> based
> upon the schema) and can skip DROPs as that is scary stuff.
>
> http://cl.ly/1V0K3n2w143n05072r2W
>
>
> On Fri, Oct 7, 2011 at 2:33 PM, John Huss <johnthuss@gmail.com> wrote:
>
> > Thanks, could you give an example or point me to the classes that do
> this:
> > "use the ExecutingMergerContext to apply the DB
> > schema changes."
> >
> > On Fri, Oct 7, 2011 at 3:15 PM, Dave Lamy <davelamy@gmail.com> wrote:
> >
> > > I've got runtime schema sync integrated into our codebase.  It's
> > > essentially
> > > a matter of updating the Cayenne model at runtime (via manipulation of
> > > DataMap members) and then using the ExecutingMergerContext to apply the
> > DB
> > > schema changes.
> > >
> > > Dave
> > >
> > > On Fri, Oct 7, 2011 at 1:16 PM, John Huss <johnthuss@gmail.com> wrote:
> > >
> > > > Can Cayenne do database schema migration (like adding a column) at
> > > runtime
> > > > or just via the modeler app?
> > > >
> > > > Thanks,
> > > > John
> > > >
> > >
> >
>

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