| 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>/sjbpc/views</value></property> |
|---|
| 13 | <property name="generatedViewMapping"><value>/sjbpc/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 | The following explains how to connect Model-Glue to either the |
|---|
| 31 | Transfer or Reactor ORM frameworks. |
|---|
| 32 | |
|---|
| 33 | If you've got the lastest (from CVS) version of ColdSpring, the commented-out |
|---|
| 34 | code below will work. |
|---|
| 35 | |
|---|
| 36 | Otherwise, do the following: |
|---|
| 37 | |
|---|
| 38 | 1. Choose whether to use Reactor or Transfer for this project |
|---|
| 39 | 2. Open up /ModelGlue/unity/config/Configuration.xml |
|---|
| 40 | 3. Uncomment the appropriate "To use xxxx as an ORM Framework..." block below |
|---|
| 41 | 4. Delete the <alias /> tags in the ORM block you uncommented |
|---|
| 42 | 5. If using Reactor, copy/paste the beans named "ormAdapter.Reactor" and |
|---|
| 43 | "ormService.Reactor" to this file (from Configuration.xml) and remove |
|---|
| 44 | the ".Reactor" from their name attributes. |
|---|
| 45 | 6. If using Transfer, copy/paste the beans named "ormAdapter.Transfer" and |
|---|
| 46 | "ormService.Transfer" to this file (from Configuration.xml) and remove |
|---|
| 47 | the ".Transfer" from their name attributes. |
|---|
| 48 | --> |
|---|
| 49 | |
|---|
| 50 | <!-- |
|---|
| 51 | Transfer: |
|---|
| 52 | |
|---|
| 53 | <alias alias="ormAdapter" name="ormAdapter.Transfer" /> |
|---|
| 54 | <alias alias="ormService" name="ormService.Transfer" /> |
|---|
| 55 | <bean id="transferConfiguration" class="transfer.com.config.Configuration"> |
|---|
| 56 | <constructor-arg name="datasourcePath"><value>/sjbpc/config/transfer/Datasource.xml</value></constructor-arg> |
|---|
| 57 | <constructor-arg name="configPath"><value>/sjbpc/config/transfer/Transfer.xml</value></constructor-arg> |
|---|
| 58 | <constructor-arg name="definitionPath"><value>/sjbpc/model/data/transfer</value></constructor-arg> |
|---|
| 59 | </bean> |
|---|
| 60 | --> |
|---|
| 61 | |
|---|
| 62 | <!-- |
|---|
| 63 | Reactor: |
|---|
| 64 | --> |
|---|
| 65 | <alias alias="ormAdapter" name="ormAdapter.Reactor" /> |
|---|
| 66 | <alias alias="ormService" name="ormService.Reactor" /> |
|---|
| 67 | <bean id="reactorConfiguration" class="reactor.config.config"> |
|---|
| 68 | <constructor-arg name="pathToConfigXml"><value>/sjbpc/config/reactor/Reactor.xml</value></constructor-arg> |
|---|
| 69 | <property name="project"><value>sjbpc</value></property> |
|---|
| 70 | <property name="dsn"><value>sjbpc</value></property> |
|---|
| 71 | <property name="type"><value>mssql</value></property> |
|---|
| 72 | <property name="mapping"><value>/sjbpc/model/data/reactor</value></property> |
|---|
| 73 | <property name="mode"><value>development</value></property> |
|---|
| 74 | </bean> |
|---|
| 75 | |
|---|
| 76 | </beans> |
|---|