Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » 'org.hibernate.collection.PersistentSet' is an unknown class
'org.hibernate.collection.PersistentSet' is an unknown class [message #584861] Sun, 21 March 2010 15:51 Go to next message
Xino  is currently offline Xino
Messages: 18
Registered: July 2009
Junior Member
Hi all,

I am using the latest version of riena + JPA hibernate implementation.

On the client side I am still having the exception below :

ATTENTION: Hessian/Burlap: 'org.hibernate.collection.PersistentSet' is an unknown class in mailto:org.eclipse.core.runtime.internal.adaptor.ContextFinder@152643:
java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet.

How can get rid of this please ?
Thank you in advance.
Re: 'org.hibernate.collection.PersistentSet' is an unknown class [message #584893 is a reply to message #584861] Mon, 22 March 2010 08:02 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
Hi,

Could you please give us some more information?
Does your client have a dependency to hibernate?

Tschüß,
Stefan


On 21.03.2010 16:51, Xino wrote:
> Hi all,
>
> I am using the latest version of riena + JPA hibernate implementation.
>
> On the client side I am still having the exception below :
>
> ATTENTION: Hessian/Burlap: 'org.hibernate.collection.PersistentSet' is
> an unknown class in
> mailto:org.eclipse.core.runtime.internal.adaptor.ContextFinder@152643:
> java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet.
>
> How can get rid of this please ?
> Thank you in advance.
Re: 'org.hibernate.collection.PersistentSet' is an unknown class [message #584903 is a reply to message #584893] Mon, 22 March 2010 09:59 Go to previous messageGo to next message
Xino  is currently offline Xino
Messages: 18
Registered: July 2009
Junior Member
Hello,
Ok some precisions :

I have :
1 plugin for the ui called ui plugin

1 plugin for the domain model with definitions of my data model with hibernate annotations.
I don't know if it is a best practice solution but this plugin classpath contains all the hibernate librairies and export all the package concerned by hibernate.

1 for the services / dao.

I get the exception when I call a Collection<MyEntity> getAll() method of a service which returns all of MyEntity objects from database.
I am using directly the objects MyEntity in the client.

So I resolved my problem by importing the org.hibernate.collection package in the ui plugin. To my opinion it isn't so good because the ui is linked with hibernate that i did'nt want but...it works.

I am starting with riena/hibernate/equinox so if it isn't well designed tell me please.
If you have a better solution for this issue I will be happy to know it.
Thank you.
Re: 'org.hibernate.collection.PersistentSet' is an unknown class [message #584915 is a reply to message #584903] Tue, 23 March 2010 06:00 Go to previous message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
Hi,

On 22.03.2010 10:59, Xino wrote:
> Hello,
> Ok some precisions :
>
> I have :
> 1 plugin for the ui called ui plugin
>
> 1 plugin for the domain model with definitions of my data model with
> hibernate annotations.
> I don't know if it is a best practice solution but this plugin classpath
> contains all the hibernate librairies and export all the package
> concerned by hibernate.
>
> 1 for the services / dao.
>
> I get the exception when I call a Collection<MyEntity> getAll() method
> of a service which returns all of MyEntity objects from database.
> I am using directly the objects MyEntity in the client.
>
> So I resolved my problem by importing the org.hibernate.collection
> package in the ui plugin. To my opinion it isn't so good because the ui
> is linked with hibernate that i did'nt want but...it works.

Yes, this is not very nice. But hessian needs to know the hibernate
stuff for materialization of the objects from the server.
You could try to reexport hibernate from the domain bundles. Then it
would be a hidden dependency.

>
> I am starting with riena/hibernate/equinox so if it isn't well designed
> tell me please.
> If you have a better solution for this issue I will be happy to know it.

You could try to decouple your domain model from hibernate such that it
will not make the client bundle/s depend on hibernate. The downside of
such an approach is that you will have to convert data between hibernate
´polluted´ (only server side) and 'clean' objects (client side and
server side).

> Thank you.
>

Tschüß,
Stefan
Previous Topic:Programmatically Focus on Workarea
Next Topic:'org.hibernate.collection.PersistentSet' is an unknown class
Goto Forum:
  


Current Time: Sat Oct 25 08:54:52 GMT 2014

Powered by FUDForum. Page generated in 0.02289 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software