pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedmeta data domains ibatis abator etc
2+ messages / 2 participants
[nested] [flat]
* meta data domains ibatis abator etc
@ 2007-02-04 21:14 BillR <iambill@williamrosmus.com>
0 siblings, 1 reply; 2+ messages in thread
From: BillR @ 2007-02-04 21:14 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
Unfortunately it seems the Postgres JDBC driver doesn't return the base
type for domains... the data type shows up as 'OTHER'. Now that Ibatis is
pretty big, there is an Apache/Ibatis code generating tool you can use to
generate most of the sql map files you need. However it relies on being able to
find the correct jdbc data type.
Is there something I need to know in order to get the JDBC driver to return the
correct base types? Does anyone have any experience with this with respect to
Abator?
Since domains are absolutely essential for effectively managing the data model,
I don't really want to get rid of them. However, code generating tools are
essential for code development to reduce time wasted on monkey work. If Abator
didn't exist, I would have written my own generator (which would rely on the
correct data type being returned).
As a side note, I don't know why, but I keep wanting to pronounce it as
Abattoir. There has to be a better name.
Thanks,
BillR
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: meta data domains ibatis abator etc
@ 2007-02-05 15:28 Kris Jurka <books@ejurka.com>
parent: BillR <iambill@williamrosmus.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2007-02-05 15:28 UTC (permalink / raw)
To: BillR <iambill@williamrosmus.com>; +Cc: pgsql-jdbc
On Sun, 4 Feb 2007, BillR wrote:
> Hi,
> Unfortunately it seems the Postgres JDBC driver doesn't return the base
> type for domains... the data type shows up as 'OTHER'. Now that Ibatis is
> pretty big, there is an Apache/Ibatis code generating tool you can use to
> generate most of the sql map files you need. However it relies on being able
> to find the correct jdbc data type.
>
> Is there something I need to know in order to get the JDBC driver to return
> the correct base types?
How to write some code? Unfortunately the JDBC driver knows nothing about
domains. Pretty much everything you'd need to modify should be in
org.postgresql.jdbc2.TypeInfoCache.java to be able to make it see through
domains.
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-02-05 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-02-04 21:14 meta data domains ibatis abator etc BillR <iambill@williamrosmus.com>
2007-02-05 15:28 ` Kris Jurka <books@ejurka.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox