-->
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: derby + Hibernate + Eclipse RCP
PostPosted: Sun Jul 15, 2012 8:03 am 
Newbie

Joined: Sun Jul 15, 2012 7:57 am
Posts: 5
Hi,

I am trying to port a derby database in an Eclipse RCP application that I am making.

I have tried many different methods of adding the derby.jar files along with the project in RCP
But whenever I run the project, i get Class not found exception.

Has anyone been able to successfully port derby.jar files inside an RCP application while using Hibernate ?

I just cannot get this working.

Any help is much appreciated.


Top
 Profile  
 
 Post subject: Re: derby + Hibernate + Eclipse RCP
PostPosted: Sun Jul 15, 2012 10:13 pm 
Newbie

Joined: Sun Jul 15, 2012 7:57 am
Posts: 5
Further updates:

I have found a derby plugin for eclipse, and downloaded it.
So this means there cannot be any problem with the exporting of derby jar files as plugin.

To give you some more details, here is my hibernate config file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="mySessionFactory">
  <property name="hibernate.connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
  <property name="hibernate.connection.url">jdbc:derby:/Users/Shashank/Desktop/rubrics/Rubrics/database/rubricsData</property>
  <property name="hibernate.dialect">org.hibernate.dialect.DerbyDialect</property>
  <property name="hibernate.show_sql">true</property>
  <property name="hibernate.hbm2ddl.auto">update</property>
  <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
  <property name="hibernate.format_sql">false</property>
</session-factory>
</hibernate-configuration>


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.