james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Trutz" <ch...@smilebase.de>
Subject AW: AW: Working on UsersJDBCRepository.
Date Fri, 08 Jun 2001 16:15:55 GMT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Danny,

>I think you should have the table creation statements in an xml
>file, and read them from this as directed by config.xml

you convinced me, UsersMySQLRepository, UsersOracleRepository, ... is
bullshit :-) I think your idea is better, perhaps with

                        <users_table>myusers</users_table>
                       
<users_firstname_col/>firstname<users_firstname_col/>

   ....
				<create>
				    CREATE TABLE <users_table/> (
	   				 id INT NOT NULL AUTO_INCREMENT,
	    				 <users_firstname_col/> VARCHAR(60) NOT NULL,
	    				 <users_lastname_col/> VARCHAR(60) NOT NULL,
	    				 PRIMARY KEY (id)
					 );
				</create>

  ....

or using XLink ??? ... has anybody here experience with XLink? 

and not 
				<create>
				    CREATE TABLE [tablename] (
	   				 id INT NOT NULL AUTO_INCREMENT,
	    				 firstnamefield VARCHAR(60) NOT NULL,
	    				 lastnamefield VARCHAR(60) NOT NULL,
	    				 PRIMARY KEY (id)
					 );
				</create>



>thus to add support for any other SQL RDBMS would only require a
>JDBC driver and some time hacking the SQL config file, no hacking
>the
>code.
OK that's better

Chris

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA+AwUBOyD6O0byo9NuJhiHEQJPJgCYiNIu/pGkDbqrhHQnADfBiR5uoACgsYR/
PeWeVod8yps/KRU5QZkY6eM=
=l7ic
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message