-->
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.  [ 1 post ] 
Author Message
 Post subject: JetDriver, MS Access 2000 : wrong select statement(version?)
PostPosted: Fri Nov 10, 2006 12:30 pm 
Newbie

Joined: Fri Nov 03, 2006 4:09 am
Posts: 4
Hello,

I'm using NHibernate 1.2.0 (for .Net Framework 2.0...). I'm trying to use the Jetdriver but in file 'JetDriver.cs' something strange happens:

1) I have a table in MS Acces, mapped the table and created a class-file (everything perfect here);
2) Code behind form:
IList<VerkoopEenh> lijst = new List<VerkoopEenh>();
ISession session = GetSession();

IQuery c = session.CreateQuery("from VerkoopEenh ve");

lijst = c.List<VerkoopEenh>();
3) MS Access database is opened!

I get an error implying the SQL is wrong. When I follow the process I found out that in class 'JetDriver' method 'GenerateCommand' the query 'from VerkoopEenh ve' is parsed. I jugles a lot, during this process I can see a correct SQL emerge!! Afther this the new query is NOT used but a new version of the old one 'from verkoop_eenh verkoopeen0_' is parsed to MS Access resulting in an obvious SQl error.

This is such a basic error that I think I builded the wrong version of the Jet-driver/dialect/ or NHibernate.JetDriver

Do you perhaps know how to correct this (other JetDriver-class?). Does this problem also emerge when I start persisting?

Stefan


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

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.