Changes for page WebObjects with Scala

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

From version 366.1
edited by Ravi Mendis
on 2009/12/01 22:54
Change comment: There is no comment for this version
To version 369.1
edited by Ravi Mendis
on 2009/12/08 19:02
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 | {{code}}[object name]{{/code}} | {{code}}object.getName(){{/code}} | {{code}}object.name{{/code}}
164 +|= setter | {{code}}[object setName:aName]{{/code}} | {{code}}object.setName(aName){{/code}} | {{code}}object.name = aName{{/code}}
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##.
... ... @@ -206,4 +206,5 @@
206 206  
207 207  1. Point to the local [[Scala versions>>http://wiki.objectstyle.org/confluence/display/WOL/EOGenerator+Templates+and+Additions]] of the .eotemplate files for ##Entity## and ##//Entity//##
208 208  1. Change the File Names Extension to "scala"
217 +1. In Destination Paths set the Superclass Package (e.g: base)
209 209  1. Uncheck Java under Options