RCP client + Riena Equinox server + JPA/Hibernate [message #552771] |
Fri, 13 August 2010 13:17 |
Xino Messages: 18 Registered: July 2009 |
Junior Member |
|
|
Hello,
My achitecture did change since my last thread :
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.
1 for the services / dao.
To simplify the model:
A Pupil entity with a OneTOMany association with Subscritption entity.
1st scenario :
- Empty database
- Manually insert "Pupil"
- Update Pupil
--> everything works fine
2nd scenario :
- Stop the client
- relaunch the client
- Load the pupils
- update the pupils data
--> everything works fine
3rd scenario :
- Stop the server
- Relaunch the server
- relaunch the client
- Load the pupils
- update the pupils data
--> the famous LazyInitException : no session or session was closed with the subcription field
One more precision ;when i debbugged on the server the fields are initialzed but not on the client side.
Of course, I made some google searches but did nt fout the solution.
they more often linked with JEE containers.
I supposed it's about session, persistence context but i am a newbie about hibernate.
I don't understand why it's ok in some cases but not in others.
My question : is there some basic code samples availables within this architecture : RCP - Riena/equinox server - JPA/hibernate
just show basics CRUD operation and others best practices about configuration and so on ?
A solution for my initial issue is also welcome.
Thanks in advance.
[Updated on: Sat, 14 August 2010 07:52] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03339 seconds