----- Original Message -----
From: Rafal Krzewski <[EMAIL PROTECTED]>
To: Turbine list <[EMAIL PROTECTED]>
Sent: Thursday, September 21, 2000 3:50 PM
Subject: Attributes vs OBJECTDATA
> Hi,
>
> We had a lot of discussions concerning the different attributes
> that an application may want to store for an user. The approach
> that is used currently is that certain attributes are stored
> as 'real' attributes i.e. columns of a table, and others are
> stored as a serialized hashtable object. The action taken
> while storing the user data, depends on the TurbineUserPeer
> recognizing the attribute name as a column name of the Visitor
> table. If the application needs to process some other attribute
> that the TurbineUserPeer does not know, even if the administrator
> adds a suitably called column to the visitor table, the
> attribute still will be stored in the serialized hashtable, thus
> preventing the application from using this attribute in Criterias
> of User selection. To change this, the creator of the application
> would have to extend DBUser class to use extended TurbineUserPeer class
> that is aware of the additional attributes.
>
Assuming this is not done while the application is live, it should be
possible to add a column to the database to accept data from an "attribute
(the Perm hashtable)". The admin adds the column which has the name of the
key. The app is started and TurbineUserPeer is then aware of the column.
It is a problem as it is currently written that the new empty column would
overwrite the value stored in OBJECTDATA the last time the user was saved.
I think this should be changed, so that when including the attributes stored
in named columns if a key is already present in Perm, (and maybe that the
column data is null or "", etc.) the data in Perm stays, so that the next
time the user is saved the column will get populated. Anyone see a problem
with this?
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]