[Teneo] not finding hibernate.properties [message #125356] |
Fri, 06 June 2008 22:40 |
Eclipse User |
|
|
|
Originally posted by: tskaufma.gmail.com
Hello,
I am using EMF (all in one SDK) 2.4RC3, Teneo SDK 1.0.0RC3 and RCP SDK
3.4RC3 plus a couple other Eclipse 3.4 RC3 plugins in my target platform.
I have a hibernate.properties in the root of a plugin:
net.sf.depcon.core
src/
...
hibernate.properties
and in the MANIFEST.MF for the plugin I have:
Eclipse-RegisterBuddy: net.sf.depcon.hibernate
Bundle-ClassPath: .
so the hibernate.properties should be in the root of the classpath, right?
I also have the Hibernate jar and required jars packaged as plugin. In it's
MANIFEST.MF I have:
Eclipse-BuddyPolicy: registered, global
So Hibernate should be able to find the hibernate.properties, but it
doesn't work.
The Teneo docs (which maybe out of date?) say:
Teneo allows you to configure Hibernate in two ways:
Automatically: by placing the properties in the file
"hibernate.properties" in a root directory of the classpath. We use this
method in this tutorial.
Programmatically: by creating a Properties instance and using
HbDataStore.setProperties().
So this should work.. it does with Teneo 0.8.0.v200802122150 and EMF
2.4.0.v200801292000
Thanks,
Trevor Kaufman
|
|
|
Re: [Teneo] not finding hibernate.properties [message #125370 is a reply to message #125356] |
Fri, 06 June 2008 22:47 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Trevor,
I am quessing a bit but I am surprised that it is possible to read a property file in the root from
another plugin. My feel was that a plugin only allows access to exported packages and I am not sure
if you even can export the root of the package tree...
To be sure, is the hibernate.properties present in the output directory?
gr. Martin
Trevor Kaufman wrote:
> Hello,
>
> I am using EMF (all in one SDK) 2.4RC3, Teneo SDK 1.0.0RC3 and RCP SDK
> 3.4RC3 plus a couple other Eclipse 3.4 RC3 plugins in my target platform.
>
> I have a hibernate.properties in the root of a plugin:
>
> net.sf.depcon.core
> src/
> ...
> hibernate.properties
>
> and in the MANIFEST.MF for the plugin I have:
> Eclipse-RegisterBuddy: net.sf.depcon.hibernate
> Bundle-ClassPath: .
>
> so the hibernate.properties should be in the root of the classpath, right?
>
> I also have the Hibernate jar and required jars packaged as plugin. In
> it's MANIFEST.MF I have:
> Eclipse-BuddyPolicy: registered, global
>
> So Hibernate should be able to find the hibernate.properties, but it
> doesn't work.
>
>
> The Teneo docs (which maybe out of date?) say:
> Teneo allows you to configure Hibernate in two ways:
>
> Automatically: by placing the properties in the file
> "hibernate.properties" in a root directory of the classpath. We use this
> method in this tutorial.
> Programmatically: by creating a Properties instance and using
> HbDataStore.setProperties().
>
> So this should work.. it does with Teneo 0.8.0.v200802122150 and EMF
> 2.4.0.v200801292000
>
> Thanks,
> Trevor Kaufman
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] not finding hibernate.properties [message #619210 is a reply to message #125356] |
Fri, 06 June 2008 22:47 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Trevor,
I am quessing a bit but I am surprised that it is possible to read a property file in the root from
another plugin. My feel was that a plugin only allows access to exported packages and I am not sure
if you even can export the root of the package tree...
To be sure, is the hibernate.properties present in the output directory?
gr. Martin
Trevor Kaufman wrote:
> Hello,
>
> I am using EMF (all in one SDK) 2.4RC3, Teneo SDK 1.0.0RC3 and RCP SDK
> 3.4RC3 plus a couple other Eclipse 3.4 RC3 plugins in my target platform.
>
> I have a hibernate.properties in the root of a plugin:
>
> net.sf.depcon.core
> src/
> ...
> hibernate.properties
>
> and in the MANIFEST.MF for the plugin I have:
> Eclipse-RegisterBuddy: net.sf.depcon.hibernate
> Bundle-ClassPath: .
>
> so the hibernate.properties should be in the root of the classpath, right?
>
> I also have the Hibernate jar and required jars packaged as plugin. In
> it's MANIFEST.MF I have:
> Eclipse-BuddyPolicy: registered, global
>
> So Hibernate should be able to find the hibernate.properties, but it
> doesn't work.
>
>
> The Teneo docs (which maybe out of date?) say:
> Teneo allows you to configure Hibernate in two ways:
>
> Automatically: by placing the properties in the file
> "hibernate.properties" in a root directory of the classpath. We use this
> method in this tutorial.
> Programmatically: by creating a Properties instance and using
> HbDataStore.setProperties().
>
> So this should work.. it does with Teneo 0.8.0.v200802122150 and EMF
> 2.4.0.v200801292000
>
> Thanks,
> Trevor Kaufman
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.04913 seconds