Changes for page WebObjects with Scala

Last modified by Ravi Mendis on 2011/05/10 02:10

From version 368.1
edited by Ravi Mendis
on 2009/12/02 00:05
Change comment: There is no comment for this version
To version 371.1
edited by Ravi Mendis
on 2009/12/08 19:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -53,7 +53,7 @@
53 53  
54 54  {{code}}
55 55  
56 -public class Talent extends EOGenericRecord {
56 +public class _Talent extends EOGenericRecord {
57 57   public static final String ENTITY_NAME = "Talent";
58 58  
59 59  {{/code}}
... ... @@ -62,7 +62,7 @@
62 62  
63 63  {{code}}
64 64  
65 -object Talent extends EOGenericRecord {
65 +object Talent extends EOGenericRecord {
66 66   val ENTITY_NAME = "Talent"
67 67  
68 68  {{/code}}
... ... @@ -155,6 +155,14 @@
155 155  
156 156  {{/code}}
157 157  
158 +==== Scala Annotations vs. Generic Accessors ====
159 +
160 +An example of accessing variables in the following languages:
161 +
162 +|= |= Objective-C |= Java |= Scala
163 +|= getter | ##object name## | ##object.getName()## | ##object.name##
164 +|= setter | ##object setName:aName## | ##object.setName(aName)## | ##object.name = aName##
165 +
158 158  == How to Use Scala Collections with EOF ==
159 159  
160 160  One of the benefits of Scala is its very powerful, concurrency-ready collection classes - primarily ##List##, ##Map##, ##Seq## and ##Set##.