Hi Dube , Craig .
I have deployed an entity
bean[CMP] in the MySQL database.
I am
specifying database-schemas\mysql.xml & modifications in
data-sources.xml as it is.
1]database-schemas\mysql.xml
<?xml version="1.0"?>
<!DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd"> <!-- Author : Shailesh Joshi --> <database-schema name="Mysql" not-null="not null" null="" primary-key="primary key"> <type-mapping type="java.lang.String" name="varchar(255)" /> <type-mapping type="int" name="integer" /> <type-mapping type="float" name="float" /> <type-mapping type="double" name="double" /> <type-mapping type="byte" name="smallint" /> <type-mapping type="char" name="char(1)" /> <type-mapping type="short" name="integer" /> <type-mapping type="boolean" name="bit" /> <type-mapping type="java.util.Date" name="datetime" /> <disallowed-field name="password" /> <disallowed-field name="username" /> <disallowed-field name="date" /> <disallowed-field name="text" /> </database-schema> 2]Part added to
data-sources.xml
<data-source
name="MySQL" class="com.evermind.sql.ConnectionDataSource" location="jdbc/DefaultDS" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:mysql://<IPAddress>/Test" [Test is my database] connection-driver="org.gjt.mm.mysql.Driver" username="xxxxx" password="xxxxx" inactivity-timeout="30" schema="database-schemas/mysql.xml" />
Shailesh Joshi
Java Programmer
Versaware(India) Ltd.
|
Title: Orion and MySQL
- Orion and MySQL Dube, Craig
- Shailesh Joshi