cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <>
Subject Re: Making columnOriginal and columnNew public
Date Wed, 27 Aug 2008 08:32:58 GMT

(This is related to merging)

Another option to solve the same would be to create a  
AbstractToDbToken.mayRemoveInformation() that all ToDb tokens will  
have to implement? Need to find a better name. What do you think?

  - Tore.

On Aug 27, 2008, at 8:25 , Øyvind Harboe wrote:

> I need to figure out if a change to the database would cause data  
> loss.
> E.g. a user might *increase* the size of a text field and in this
> case the model should be adapted to the new size. This allows
> database managers some control over the database structure
> from the comfort of e.g. MS SQL Manager.
> If the model has a *larger* size of a text field, then I want to
> update the database column to be larger.
> I'm not sure I'm  a believer in an automatic way of handling
> this since there could be a lot of application specific decisions
> happening.
> How about exposing the above two attributes in getColumnOriginal()
> and getColumnNew()?
> -- 
> Øyvind Harboe
> ARM7 ARM9 XScale Cortex
> JTAG debugger and flash programmer

View raw message