-
1. Re: MySql Datasource Configuration
nmartel Jan 27, 2004 3:43 PM (in response to carlos.gurgel)Try changing you container managed persistance bean like this:
<jbosscmp-jdbc>
java:/MySqlDs
<datasource-mapping>mySQL</datasource-mapping>
...
<type-mapping>
mySQL
<row-locking-template>SELECT ?1 FROM ?2 WHERE ?3 FOR UPDATE</row-locking-template>
<pk-constraint-template>CONSTRAINT ?1 PRIMARY KEY (?2)</pk-constraint-template>
<fk-constraint-template>ALTER TABLE ?1 ADD INDEX ind_?2 (?3), ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5)</fk-constraint-template>
<auto-increment-template>?1 auto_increment</auto-increment-template>
<alias-header-prefix>t</alias-header-prefix>
<alias-header-suffix>_</alias-header-suffix>
<alias-max-length>32</alias-max-length>
<subquery-supported>false</subquery-supported>
<true-mapping>1</true-mapping>
<false-mapping>0</false-mapping>
...
The data source is specified first... this is where your camel-case name goes.
The db mapping types come next. The second arg needs to be "mySQL" to match the translations or mappings portion. Make sure that you have the "mySQL" mappings further down in the CMP configuration file. -
2. Re: MySql Datasource Configuration
nmartel Jan 27, 2004 3:45 PM (in response to carlos.gurgel)Marc F... fix this posting code.... it keeps mangling the posts!
<jbosscmp-jdbc>
java:/DefaultDS
<datasource-mapping>mySQL</datasource-mapping>
The first portion of my prior post should look like the above. -
3. Re: MySql Datasource Configuration
nmartel Jan 27, 2004 3:49 PM (in response to carlos.gurgel)Sorry the posts aren't working right!
Talk to the JBoss folks.
The less than/greater than appear to cause problems to the parsing/posting code.
Also, the web master ignores any email you send.
Last gripe... no webmaster contact on the web site!!!