Re: [Pharo-users] Making objects persistent

2015-01-15 Thread Paul DeBruicker
Here is another approach: http://forum.world.st/Best-practices-available-for-Seaside-Gemstone-tp2721023p2901998.html sergio_101 wrote > I am building a seaside application, and am in the process of building my > models and unit tests. > > I have a few objects that build up my data by creating o

Re: [Pharo-users] Making objects persistent

2015-01-15 Thread sergio_101
Hi, all.. these are all ideas that make sense, and for the sake of any new people coming to pharo/smalltalk, i want to clarify just a little bit more what i am actually doing. i am setting up a new site that needs to have a bunch of data available at all times. something like.. products, product

Re: [Pharo-users] Making objects persistent

2015-01-15 Thread Ben Coman
Store the objects in an array in a class variable. To delete, just nil the class variable. On Thu, Jan 15, 2015 at 3:44 PM, jtuc...@objektfabrik.de < jtuc...@objektfabrik.de> wrote: > Sergio, > > I'D say you first need to define what you mean by "persistent" If all you > need is to have them sur

Re: [Pharo-users] Making objects persistent

2015-01-14 Thread jtuc...@objektfabrik.de
Sergio, I'D say you first need to define what you mean by "persistent" If all you need is to have them survive a Garbage Collection, you just need to make sure these objects are referenced by som eother objects. Depending on your use case, this can be Seaside Sessions, Global variables (proba

Re: [Pharo-users] Making objects persistent

2015-01-14 Thread p...@highoctane.be
On Thu, Jan 15, 2015 at 6:06 AM, sergio_101 wrote: > I am building a seaside application, and am in the process of building my > models and unit tests. > > I have a few objects that build up my data by creating objects. > > when i run the data creation methods, everything is fine. immediately > a

Re: [Pharo-users] Making objects persistent

2015-01-14 Thread stepharo
Le 15/1/15 06:06, sergio_101 a écrit : I am building a seaside application, and am in the process of building my models and unit tests. I have a few objects that build up my data by creating objects. when i run the data creation methods, everything is fine. immediately afterward, since these

[Pharo-users] Making objects persistent

2015-01-14 Thread sergio_101
I am building a seaside application, and am in the process of building my models and unit tests. I have a few objects that build up my data by creating objects. when i run the data creation methods, everything is fine. immediately afterward, since these objects to belong to anything, they are cle