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: NHibernate.JetDriver with SchemaUpdate operation.
PostPosted: Wed Feb 11, 2009 1:36 pm 
Newbie

Joined: Wed Feb 11, 2009 1:20 pm
Posts: 1
Dear all,
Google cannot help me. I will try here. :-)

Did someone ever experience the following exception?

Code:
Unable to cast object of type 'NHibernate.JetDriver.JetDbConnection' to type 'System.Data.Common.DbConnection'.
(System.InvalidCastException)

I'm using NHibernate 2.0.1.4000, NHibernate.JetDriver 2.0.0.1001 compiled by me, connecting to an Access database
Code:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Database.mdb;Persist Security Info=True

The exception is throw by the command
Code:
hbm2ddl.SchemaUpdate.Execute(false, true)
command; any other operation (hbm2ddl.SchemaExport.Execute and CRUD ops.) works fine.

Any advice, please?
Is it possible that NHibernate.JetDriver module is not ready for SchemaUpdate operation?

Thank you for your time.
Nicola


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.