ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Shneyderman" <a.shneyder...@gmail.com>
Subject Re: Generating source code from sql statement
Date Thu, 20 Nov 2008 20:00:20 GMT
it will not work 100% as types will be messed up - just so you know
that there will be the need for manual over-write option :-).
JDBC often (about 20% for oracle jdbc driver) mis-reports types for
the fields on the views and sometimes it simply has no way
to detect them.

On Thu, Nov 20, 2008 at 2:35 PM, Ben Shory <ben.s@sapiens.com> wrote:
> Thanks, i will automate a view creation form my queries and than generate
> the sources.
> ________________________________
> From: Dan Turkenkopf [mailto:dturkenk@gmail.com]
> Sent: Thursday, November 20, 2008 2:51 PM
> To: user-java@ibatis.apache.org
> Subject: Re: Generating source code from sql statement
>
> Hi Ben,
>
> You can't generate from a query, but you can generate from a view.
>
> I don't know if that will help in your case, but it is an option.
>
> Regards,
> Dan Turkenkopf
>
> On Thu, Nov 20, 2008 at 5:53 AM, charlie bird <zebthecat@yahoo.co.uk> wrote:
>>
>> Don't think so.
>> I've always pointed A(I)Bator at one the tables in the query and then hand
>> coded the rest - Doesn't take very long.
>>
>>
>> --- On Thu, 20/11/08, Ben Shory <ben.s@sapiens.com> wrote:
>>
>> > From: Ben Shory <ben.s@sapiens.com>
>> > Subject: Generating source code from sql statement
>> > To: user-java@ibatis.apache.org
>> > Date: Thursday, 20 November, 2008, 10:25 AM
>> > Hi,
>> > Is there any way to generate the domain object from a query
>> > (from
>> > multiple tables) and not from a table?
>>
>>
>>
>
>

Mime
View raw message