Hi,
I need to access some legacy data in a UniData 7.1 database. So far I've got the JDBC driver going and now I'd like to get some ORM happening.
I've begun by writing a trivial Dialect class but this fails on the simplest query because the UniData SQL does not support column aliases.
An example of the SQL generated by Hibernate for a simple query is:
Code:
select this_.CODE as CODE0_0_, this_.DESCR as DESCR0_0_ from GF_COUNTRY_NF_SUB this_;
[i]syntax error[/i]
However if I remove the "as ..." clauses and submit the SQL directly, then it executes without error:
Code:
select this_.CODE, this_.DESCR from GF_COUNTRY_NF_SUB this_;
So, is this a lost cause? Is there any way to "dumb down" the SQL that hibernate generates so as to accomodate the limited syntax supported by UniData?
Andrew.