Changes for page WebObjects and Squeryl
Last modified by Ravi Mendis on 2011/04/01 11:14
From version 138.1
edited by Ravi Mendis
on 2010/11/10 02:55
on 2010/11/10 02:55
Change comment:
There is no comment for this version
To version 150.1
edited by Ravi Mendis
on 2010/11/10 03:18
on 2010/11/10 03:18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -18,6 +18,13 @@ 18 18 19 19 EOF has the ability to generate classes in Java (and in Objective-C prior to WebObjects 4.5) as enforcing type has become customary in enterprise environments. We may exploit this feature of EOF to generate a Squeryl schema. 20 20 21 +=== Preparing your EO model === 22 + 23 +1. Make sure **all** EO entities have a class name (including abstract many-To-many "join" tables). There's no support for entities marked as ##EOGenericRecord##. 24 +1. (Temporary) Ensure all EO entities are in the same package 25 + 26 +=== Generating the Squeryl Schema === 27 + 21 21 1. Create a .eogen file for your EO model as normal. Only set the ##File Names## extension to "scala". 22 22 1. Use the Squeryl EO Templates: 23 23 ... ... @@ -24,3 +24,9 @@ 24 24 * 25 25 ** Entity.eotemplate [[template>>WOL:Squeryl _Entity.eotemplate]] 26 26 ** Entity.eotemplate [[template>>WOL:Squeryl Entity.eotemplate]] 34 + 35 +{{note title="Note"}} 36 + 37 +Any custom business "logic" will have to be manually re-written in Scala 38 + 39 +{{/note}}