-->
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.  [ 2 posts ] 
Author Message
 Post subject: Queries without aliases
PostPosted: Sat Jan 21, 2006 7:18 am 
Newbie

Joined: Thu Aug 11, 2005 5:58 pm
Posts: 6
Hi there,

I am trying to connect to a Navision database which comes with a crappy ODBC driver. It seems that aliases are not allowed there.

In particular, queries like

SELECT myclass0_.Name from NavisionTable myclass0_

always fail. I would like to ask if the way that the queries are built can be modified in NHibernate to have a query like

SELECT Name from NavisionTable

instead. Is this possible? Has anyone else experience on connecting to Navision databases and knows a way to make them work?

thanks in advance,

Stephan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 21, 2006 8:55 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
I think you will have to use an SQL query here... (ISession.CreateSQLQuery). You will still need column aliases support (not table aliases), but hopefully Navision allows that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.