Wiki source code of WebObjects and Squeryl

Version 156.1 by Ravi Mendis on 2010/11/09 23:59

Hide last authors
Ravi Mendis 81.1 1 = Squeryl ~= //SQL-like// DSL for Scala =
Ravi Mendis 54.1 2
Ravi Mendis 117.1 3 Advantages of Squeryl over EOF:
Ravi Mendis 54.1 4
5 * Concurrent
Ravi Mendis 155.1 6 ** Spawns multiple database connections
7 ** Issues database transactions concurrently
Ravi Mendis 54.1 8 * Scala Actor compatible
Ravi Mendis 151.1 9 * Immutable object model/graph
Ravi Mendis 81.1 10 * Strongly-typed
Ravi Mendis 155.1 11 ** Better suited for business "logic".
12 E.g: Exploiting the compiler and IDE to catch exceptions at compile time rather than at run-time.
Ravi Mendis 115.1 13 * Uses Scala (functional) collection classes
Ravi Mendis 155.1 14
15 = Migrating EOF -> Squeryl =
16
17 In keeping with the strong-typed philosophy of Scala, Squeryl has no dynamic component like EOF (i.e an EO model file).
18
19 EOF though has the ability to generate classes in Java (and in Objective-C prior to WebObjects 4.5) enforcing type as has become customary in enterprise environments. We may exploit this feature of EOF to generate a Squeryl schema.