this file:

<?xml version="1.0"?>
<!DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema"
"http://www.orionserver.com/dtds/database-schemas.dtd">

<database-scheme name="PostGreSQL" max-table-name-length="25" not-null="not
null" null="" primary-key="primary key">
        
    <type-mapping type="java.lang.String" name="varchar" />
    <type-mapping type="java.lang.Integer" name="int8" />
    <type-mapping type="int" name="int4" />
    <type-mapping type="long" name="int8" />
    <type-mapping type="float" name="float4" />
    <type-mapping type="double" name="float8" />
    <type-mapping type="byte" name="int2" />
    <type-mapping type="char" name="char" />
    <type-mapping type="short" name="int2" />
    <type-mapping type="boolean" name="bool" />
    <type-mapping type="java.util.Date" name="date" />
    <type-mapping type="java.io.Serializable" name="oid" />
    <type-mapping type="java.math.BigDecimal" name="decimal" />

    <disallowed-field name="parent" />
    <disallowed-field name="password" />
    <disallowed-field name="username" />
    <disallowed-field name="date" />
    <disallowed-field name="order" />
    <disallowed-field name="old" />
    <disallowed-field name="user" />
</database-scheme>


-tim

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 07, 2000 9:46 AM
> To: Orion-Interest
> Subject: Re: Postgres Datasource
> 
> 
> What is schema="database-schemas/postgresql.xml ?
> And how could refer to this datasource in my ejb code ?
> 
> thanks
> 
> On Thu, 7 Sep 2000 08:27:07 +0200, Orion-Interest wrote:
> 
> >  Hi Michel,
> >  
> >  > 
> >  > How could I configure a datasource for postgres ?
> >  > 
> >  
> >     <data-source 
> >             name="Default data-source"
> >             class="com.evermind.sql.DriverManagerDataSource"
> >             location="jdbc/DefaultDS"
> >             pooled-location="jdbc/DefaultPooledDS"
> >             xa-location="jdbc/xa/DefaultXADS"
> >             ejb-location="jdbc/DefaultEJBDS"
> >             url="jdbc:postgresql://hostname/databasename"
> >             connection-driver="org.postgresql.Driver"
> >             username="userid"
> >             password="password"
> >             schema="database-schemas/postgresql.xml"
> >     />
> >  
> >  
> >  --
> >  Klaus Thiele - Personal & Informatik AG
> >  mailto:[EMAIL PROTECTED]
> >  
> >   "There's got to be more to life than compile-and-go."
> >
> 
> 
> 
> 
> 
> _______________________________________________________
> Say Bye to Slow Internet!
> http://www.home.com/xinbox/signup.html
> 
> 

Reply via email to