| 1 | <beans> |
|---|
| 2 | <!-- This is your Model-Glue configuration --> |
|---|
| 3 | <bean id="modelGlueConfiguration" class="modelglue.unity.framework.ModelGlueConfiguration"> |
|---|
| 4 | <!-- Be sure to change reload to false when you go to production! --> |
|---|
| 5 | <property name="reload"><value>true</value></property> |
|---|
| 6 | <!-- Rescaffold is overridden by reload - if reload is false, rescaffold's setting doesn't matter --> |
|---|
| 7 | <property name="rescaffold"><value>true</value></property> |
|---|
| 8 | <!-- Be sure to change debug to false when you go to production! --> |
|---|
| 9 | <property name="debug"><value>true</value></property> |
|---|
| 10 | <property name="defaultEvent"><value>page.index</value></property> |
|---|
| 11 | <property name="reloadPassword"><value>true</value></property> |
|---|
| 12 | <property name="viewMappings"><value>/gojdix/views</value></property> |
|---|
| 13 | <property name="generatedViewMapping"><value>/gojdix/views/generated</value></property> |
|---|
| 14 | <property name="configurationPath"><value>config/ModelGlue.xml</value></property> |
|---|
| 15 | <property name="scaffoldPath"><value>config/scaffolds/Scaffolds.xml</value></property> |
|---|
| 16 | <property name="statePrecedence"><value>form</value></property> |
|---|
| 17 | <property name="reloadKey"><value>init</value></property> |
|---|
| 18 | <property name="eventValue"><value>event</value></property> |
|---|
| 19 | <property name="defaultTemplate"><value>index.cfm</value></property> |
|---|
| 20 | <property name="defaultExceptionHandler"><value>exception</value></property> |
|---|
| 21 | <property name="defaultCacheTimeout"><value>5</value></property> |
|---|
| 22 | <property name="defaultScaffolds"><value>list,edit,view,commit,delete</value></property> |
|---|
| 23 | </bean> |
|---|
| 24 | |
|---|
| 25 | <!-- Put definitions for your own beans and services here --> |
|---|
| 26 | |
|---|
| 27 | <!-- ORM Framework Configuration --> |
|---|
| 28 | |
|---|
| 29 | <!-- |
|---|
| 30 | BLEEDING EDGE NOTES ON ORM CONFIGURATION: |
|---|
| 31 | |
|---|
| 32 | You're using a Bleeding Edge Release of MG2, and it's likely |
|---|
| 33 | a subversion update just caused something like a "bean definition not found error" |
|---|
| 34 | for either "ormAdapter" or "ormService." |
|---|
| 35 | |
|---|
| 36 | That's because the bean definitions for them have been removed from the central |
|---|
| 37 | /ModelGlue/unity/config/Configuration.xml file, and you're now responsible for |
|---|
| 38 | for configuring them yourself. |
|---|
| 39 | |
|---|
| 40 | If you've got the lastest (from CVS) version of ColdSpring, the commented-out |
|---|
| 41 | code below will work. |
|---|
| 42 | |
|---|
| 43 | If you don't want to much about with CVS and updating ColdSpring, do the following: |
|---|
| 44 | |
|---|
| 45 | 1. Open up /ModelGlue/unity/config/Configuration.xml |
|---|
| 46 | 2. Choose whether to use Reactor or Transfer |
|---|
| 47 | 3. Uncomment the appropriate "To use xxxx as an ORM Framework..." block below |
|---|
| 48 | 4. Delete the <alias /> tags in the ORM block you uncommented |
|---|
| 49 | 5. If using Reactor, copy/paste the beans named "ormAdapter.Reactor" and |
|---|
| 50 | "ormService.Reactor" to this file and remove the ".Reactor" from their name |
|---|
| 51 | attributes. |
|---|
| 52 | 6. If using Transfer, copy/paste the beans named "ormAdapter.Transfer" and |
|---|
| 53 | "ormService.Transfer" to this file and remove the ".Transfer" from their name |
|---|
| 54 | attributes. |
|---|
| 55 | --> |
|---|
| 56 | |
|---|
| 57 | <bean id="transferConfiguration" class="transfer.com.config.Configuration"> |
|---|
| 58 | <constructor-arg name="datasourcePath"><value>/gojdix/config/transfer/Datasource.xml</value></constructor-arg> |
|---|
| 59 | <constructor-arg name="configPath"><value>/gojdix/config/transfer/Transfer.xml</value></constructor-arg> |
|---|
| 60 | <constructor-arg name="definitionPath"><value>/gojdix/model/data/transfer</value></constructor-arg> |
|---|
| 61 | </bean> |
|---|
| 62 | |
|---|
| 63 | <!-- Transfer adapter/service --> |
|---|
| 64 | <bean id="ormAdapter" class="ModelGlue.unity.orm.transfer.TransferAdapter"> |
|---|
| 65 | <constructor-arg name="framework"><ref bean="ModelGlue" /></constructor-arg> |
|---|
| 66 | </bean> |
|---|
| 67 | |
|---|
| 68 | <bean id="ormService" class="transfer.TransferFactory"> |
|---|
| 69 | <constructor-arg name="configuration"><ref bean="transferConfiguration" /></constructor-arg> |
|---|
| 70 | </bean> |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | <!-- |
|---|
| 74 | To use Reactor as an ORM framework, uncomment the following: |
|---|
| 75 | |
|---|
| 76 | <alias alias="ormAdapter" name="ormAdapter.Reactor" /> |
|---|
| 77 | <alias alias="ormService" name="ormService.Reactor" /> |
|---|
| 78 | <bean id="reactorConfiguration" class="reactor.config.config"> |
|---|
| 79 | <constructor-arg name="pathToConfigXml"><value>/gojdix/config/reactor/Reactor.xml</value></constructor-arg> |
|---|
| 80 | <property name="project"><value>gojdix</value></property> |
|---|
| 81 | <property name="dsn"><value>gojdix</value></property> |
|---|
| 82 | <property name="type"><value>mysql</value></property> |
|---|
| 83 | <property name="mapping"><value>/gojdix/model/data/reactor</value></property> |
|---|
| 84 | <property name="mode"><value>development</value></property> |
|---|
| 85 | </bean> |
|---|
| 86 | --> |
|---|
| 87 | </beans> |
|---|