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: sqlite problem - NHibernate 1.0.2
PostPosted: Wed Sep 27, 2006 3:16 pm 
Newbie

Joined: Wed Sep 27, 2006 2:54 pm
Posts: 15
hi all,

i have a problem with sqlite and nhibernate 1.0.2. i have this query

Code:
"select i from ExamItem as i, Exam as e where i in elements(e.Items) and e.Id = " + mid


and mid is a int variable in my class.
it throw an exception "Could not excute query" and InnerException = {"no such column: exam1_.Id"}.

i use sqlite3.dll and SQlite.Net.dll and also nhibernate 1.0.2 for using sqlite database.
my database file is created successfully and i have all columns in it correctly.

i tested the hql query and it have problem when i add elements keyword in it.

this is my Configuration :

Code:
cfg.SetProperty("hibernate.dialect", "NHibernate.Dialect.SQLiteDialect");
cfg.SetProperty("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider");
cfg.SetProperty("hibernate.connection.driver_class", "NHibernate.Driver.SQLiteDriver");
cfg.SetProperty("hibernate.connection.connection_string", @"Data Source=" + GetDatabaseName() + ";Version=3");
cfg.SetProperty("hibernate.query.substitutions", "true=1;false=0");
cfg.SetProperty("hibernate.show_sql", "true");


may anybody help me to fix this issue??

thanks all,


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 3:06 am 
Newbie

Joined: Wed Sep 27, 2006 2:54 pm
Posts: 15
i found the solution,

the problem caused by Finisar SQLite.Net DLL. i changed it with new System.Data.SQlite dll and problem solved.

tnx anyway.


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.