1 Web
<context-param> <param-name>entityDelegatorName</param-name> <param-value> Default</param-value> <description>the Name of the Entity delegator to use, defined in entityengine.xml& Lt;/description></context-param>
Change your definition of delegator in default?? Oeasy
2 Entityengine.xml custom delegator?? Oeasy
<delegator name= "Oeasy" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" > <group-map group-name= "org.ofbiz" Datasource-name= "ofbiz_ MySQL "/> <group-map group-name=" Org.ofbiz.olap "datasource-name=" Ofbiz_mysql "/> <group-map Group-name= "Org.ofbiz.tenant" datasource-name= "Ofbiz_mysql"/></delegator>
3 Definition Number According to the original Ofbiz_mysql
<datasource name= "Ofbiz_mysql" helper-class= "Org.ofbiz.entity.datasource.GenericHelperDAO" Field-type-nam E= "MySQL" check-on-start= "true" add-missing-on-start= "true" check-pks-on-start= "false" use-for Eign-keys= "true" join-style= "Ansi-no-parenthesis" alias-view-columns= "false" drop-fk-use-foreign-key- Keyword= "true" table-type= "InnoDB" character-set= "UTF8" collate= "utf8_general_ci" > <read-dat A reader-name= "tenant"/> <read-data reader-name= "seed"/> <read-data reader-name= "seed-initial"/> & Lt;read-data reader-name= "Demo"/> <read-data reader-name= "ext"/> <read-data reader-name= "Ext-test"/> <read-data reader-name= "Ext-demo"/> <inline-jdbc jdbc-driver= "Com.mysql.jdbc.Driver" Jdbc-uri= "Jdbc:mysql://localhost/aa?autoreconnect=true" jdbc-username= "root" jdbc-password= "123456" Isolation-levEl= "ReadCommitted" pool-minsize= "2" pool-maxsize= "time-between-eviction-runs-millis=" "600000"/><!--Please note that at least one person have experienced a problem with the this value with MySQL and had to set it to-1 in order to avoid this issue. For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html-- > <!--<jndi-jdbc jndi-server-name= "Localjndi" jndi-name= "Java:/mysqldatasource" isolation-level= " Serializable "/>--></datasource>
OFBiz separate the default database