-->
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.  [ 3 posts ] 
Author Message
 Post subject: using hibernate with Msaccess database
PostPosted: Thu Sep 23, 2010 6:44 am 
Newbie

Joined: Thu Sep 23, 2010 6:27 am
Posts: 3
Hi,

I am new to hibernate technology.I am trying to use Ms-access database with hibernate.For that i created a new MSAccessDialect class by extending Dialect but iam getting a error message saying MSAccessDialect is not found when i run the code.
I dont know where to keep this class.I created a package org.hibernate.dialect in my project and put the MSAccessDialect class there.Also i tried to put the MSAccessDialect in Jboss server org.hibernate.dialect package as .class file.Still i am getting the same error.Please kindly help me where to keep this MSAccessDialect java file so that my JVM can find it.Also tell me the configuration for the hibernate.cfg.xml file.

Thanks and regards,
shalini


Top
 Profile  
 
 Post subject: Re: using hibernate with Msaccess database
PostPosted: Fri Sep 24, 2010 9:36 am 
Regular
Regular

Joined: Wed Jun 20, 2007 1:53 am
Posts: 75
It doesn't matter which package your dialect class is in as far as you correctly specify your fully qualified class name in hibernate config file.

for example:
package: com.css
class : MyDialect


then your config file should be...

.
.
<property name="dialect">com.css.MyDialect</property>
.
.


Top
 Profile  
 
 Post subject: Re: using hibernate with Msaccess database
PostPosted: Fri Oct 01, 2010 5:42 am 
Newbie

Joined: Thu Sep 23, 2010 6:27 am
Posts: 3
Hi,

Thanks for the response.


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