Help coderanch get a
new server
by contributing to the fundraiser

Lavie Tobey

Greenhorn
+ Follow
since Oct 13, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Lavie Tobey

Hello,

I have a working HQL query that I'm trying to convert to a QBC. The HQL is below. I've taken several stabs at the QBC, and I've included my attempts, too. Any help getting this working (along with an explanation) would be superb!

Thanks!
Lavie

This returns a list of Task objects.




Sorry about the formatting :-/


For this attempt above, which I think is the closest I came, I got the error:


[ October 20, 2008: Message edited by: Lavie Tobey ]
[ October 20, 2008: Message edited by: Lavie Tobey ]
I was afraid of that

Thanks for the response!
Hey All -

This is my first post here, so go easy on me

The system I am working on has 2 main databases (we'll call them DB1 and DB2), with tables spread among several schemas. DB2 is accessed via synonyms in DB1, so the application only logs into DB1. To complicate things, tables in DB1 have foreign key mappings into tables in DB2. The tables in DB2 don't have primary keys, only unique indexes.

So, middlegen is not giving me very accurate HBM files. It is basically giving me a class that has no relation to any other table, and it has a composite-id made out of every column.

Has anyone out there dealt with this? I'm not really sure what other information you might need to help me with this, so please ask if I left some stuff out (which I'm sure I did).

Thanks a ton!
Lavie