-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: AS400 V4R5 and Hibernate
PostPosted: Tue Nov 18, 2003 9:52 am 
Newbie

Joined: Tue Nov 18, 2003 9:12 am
Posts: 4
Hi,
I want to know if I can use Hibernate with AS400 V4R5, with jdbc driver jt400.jar, com.ibm.as400.access.AS400JDBCDriver.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 18, 2003 8:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The key is the JDBC driver, so if the JDBC driver is reasonably good and supports meta data then it should be fine. There is a generic dialect but you may find you will need new dialect to fine tune access. There are lots of dialects in the system from which to base your new one.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 18, 2003 8:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
My understanding is that there are no particular problems with OS400 V5R4. Prior versions of DB2/400 have some problems with the SQL syntax of ORDER BY.

But I am not an AS400 user, so I am only relaying the experience of others here.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2003 6:35 pm 
Beginner
Beginner

Joined: Mon Nov 10, 2003 7:09 pm
Posts: 28
You'll have issues with ORDER BY with anything less than V5R2. Previous versions do not allow an order by on a column that is not referenced in the select. We use V5R2 here without any particular issues.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 26, 2003 3:44 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
Hibernate will append the table name to the order by columns. On V5R2, you the table.column syntax is supported in order by. You can work around this by intercepting where the order by columns are appended to the order by clause and dropping the table qualifier. You could modify the OrderByParser to strip the table qualifier when it calls the pathExpressionParser().getWhereColumn().


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.