ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lamey <cla...@localmatters.com>
Subject Re: Abator generated SqlMap.xml files
Date Tue, 20 Mar 2007 14:47:23 GMT
I use Postgres with Abator and don't have the db name in the
$TABLE_SqlMap.xml file names.  Here's what one of my table elements
looks like:

    <table schema="" tableName="SUGGESTION"
        <property name="useActualColumnNames" value="false"/>

The schema is then specified on the JDBC URL
(connectionURL="jdbc:postgresql://localhost/suggestions"), like Jeff


On Tue, 2007-03-20 at 07:17 -0500, Jeff Butler wrote:
> Abator only uses the catalog and schema in the file names if you
> specify them in your configuration.  I don't know Postgres, but with
> SQL Server you can leave the catalog out of the <table> configuration
> elements and specify the default database name on the connection URL.
> Jeff Butler
> On 3/19/07, Mark Volkmann <mark@ociweb.com> wrote: 
>         When I run Abator against a MySQL database I get files with
>         names
>         like {table-name}_SqlMap.xml.
>         When I run against Postgres or SQL Server I get files with
>         names like 
>         {database_name}_{table-name}_SqlMap.xml.
>         Is there anything I can do to get Abator to not add the
>         database name
>         prefix for Postgres and SQL Server so I don't have to change
>         my code
>         when the database type changes? 

View raw message