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.

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.

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).