Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-08 Thread Fabián Flores Vadell
2012/9/5 Bruce > > Fabián, > > Thanks for taking the time to look at this. It took us all of today to > recast the persistor class but it was well worth it as not only did we > get rid of the specialised persistors but strangely it simplified some > other aspects. > > You're welcome. > Please

Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-05 Thread Bruce
On Wed, 2012-09-05 at 12:00 +0200, Fabien Bodard wrote: > For properties on the fly ... Why dont you use _get ? Because, because ... I never thought of using it that way. ... now I have some real thinking to do. B ---

Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-05 Thread Fabien Bodard
For properties on the fly ... Why dont you use _get ? Le 5 sept. 2012 11:58, "Bruce" a écrit : > On Tue, 2012-09-04 at 18:21 -0300, Fabián Flores Vadell wrote: > > > What I'd like to be able to do is have only one of these, rather than > > > 38. > > > > > > The reason that the metadata is held as

Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-05 Thread Bruce
On Tue, 2012-09-04 at 18:21 -0300, Fabián Flores Vadell wrote: > > What I'd like to be able to do is have only one of these, rather than > > 38. > > > > The reason that the metadata is held as a static attribute is that > > during any execution of a given program, there might be hundreds > > (somet

Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-04 Thread Fabián Flores Vadell
Hi Bruce. > The roadblock I have now struck is this. Each BO class requires a > special "partner class" that contains the metadata as a static > attribute. Each of these classes now looks exactly the same, same data > items, same code. The only difference is the class name. Thus, 38 > different

Re: [Gambas-user] 38 different classes - all exactly the same.

2012-09-04 Thread Benoît Minisini
Le 04/09/2012 08:13, Bruce a écrit : > As usual this is hard to explain in a short message, but here goes. > > We have a major library that provides all the persistence mechanisms for > what we call "Business Objects". In our case it's Horses, Stables, > Auctions, Trainers, Owners, etc etc, curren

[Gambas-user] 38 different classes - all exactly the same.

2012-09-03 Thread Bruce
As usual this is hard to explain in a short message, but here goes. We have a major library that provides all the persistence mechanisms for what we call "Business Objects". In our case it's Horses, Stables, Auctions, Trainers, Owners, etc etc, currently 38 of them and growing. The reason for thi