(Glorp) what does #newAttributeNamed:type: do?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

(Glorp) what does #newAttributeNamed:type: do?

oystein
Hi

Im building a descriptor system with Glorp and the classModelForCLASSNAME.
For a DirectMapping i usually use somehting like:

aClassModel newAttributeNamed: #anAttribute.

Ive noticed that i may also say:

aClassModel newAttributeNamed: #anAttribute type: Integer.

I assumed that this would specify that anAttribute is an instance variable
of type Integer. The corresponding field in the DB table is a float. When
loading the object from the DB, the instance variable anAttribute is still
loaded as a float. My question is what is the point of #newAttribute:type:?

--
View this message in context: http://forum.world.st/Glorp-what-does-newAttributeNamed-type-do-tp3598839p3598839.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc