Just curious... why don't you use MSE? Peter
On Wed, May 17, 2017 at 12:44:58PM +0200, Sven Van Caekenberghe wrote: > Hi Cyril, > > This can be done quite easily in STON, I will make you a small example and > add it to the unit tests. > > Sven > > > On 17 May 2017, at 12:19, Cyril Ferlicot D. <cyril.ferli...@gmail.com> > > wrote: > > > > Hi! > > > > At Synectique sometimes we use Ston to export models that contains some > > MooseEntities. > > > > Moose entities been complex, we usually export only the moose name of > > the entity then we retrieve the entity during the import. But we did not > > find any "easy" way to do this in Ston. > > > > I used voyage and it has a system like this. Example: > > > > Amount class>>mongoCurrency > > <mongoDescription> > > > > ^ VOMongoToOneDescription new > > attributeName: 'currency'; > > accessor: (MAPluggableAccessor > > read: [ :amount | amount currency abbreviation ] > > write: [ :amount :value | amount currency: (Currency > > fromAbbreviation: value) ]); > > yourself > > > > With this Voyage know how to read/write the instance variable "currency". > > > > I think it would be cool to be able to easily customize import/export > > variables with Ston. Maybe it is already possible but I missed the way > > to do it? > > > > I would like your thoughts about that. :) > > > > -- > > Cyril Ferlicot > > https://ferlicot.fr > > > > http://www.synectique.eu > > 2 rue Jacques Prévert 01, > > 59650 Villeneuve d'ascq France > > > >