Changes for page WebObjects with Scala

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

From version 354.1
edited by Ravi Mendis
on 2009/10/13 21:35
Change comment: There is no comment for this version
To version 357.1
edited by Ravi Mendis
on 2009/10/13 23:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -47,8 +47,10 @@
47 47  Scala doesn't have static variables or methods. However, a class can have a //Companion Object// that will allow you to achieve something equivalent to static variables.
48 48  One of the advantages of this approach is that it is **thread-safe**, so you don't have to worry about synchronizing access to these fields in a concurrent application.
49 49  
50 -In Java:
50 +The following is an example of the use of a //Companion Object// for Talent in Scala instead of static fields in Java.
51 51  
52 +Java:
53 +
52 52  {{code}}
53 53  
54 54  public class _Talent extends EOGenericRecord {
... ... @@ -56,7 +56,7 @@
56 56  
57 57  {{/code}}
58 58  
59 -In Scala:
61 +Scala:
60 60  
61 61  {{code}}
62 62  
... ... @@ -200,10 +200,8 @@
200 200  
201 201  ==== EO Templates ====
202 202  
203 -See: [[Scala templates>>http://wiki.objectstyle.org/confluence/display/WOL/EOGenerator+Templates+and+Additions]]
204 -
205 205  When you create your ##.eogen## file, be sure to make the following changes in the EOGenerator Editor:
206 206  
207 -1. Point to the local .eotemplate files for ##Entity## and ##//Entity//##
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"
209 209  1. Uncheck Java under Options