Scout And Hibernate [message #875671] |
Wed, 23 May 2012 02:51  |
Eclipse User |
|
|
|
Hi forum!
I would like to ask if it is a good idea to use hibernate with scout or use the SQL helper class provided by scout?
Has anyone use hibernate with scout before?
Is there a tutorial/example how it could be used?
Thanks,
Panos
|
|
|
|
|
|
|
|
|
|
Re: Scout And Hibernate [message #1061064 is a reply to message #1060987] |
Wed, 29 May 2013 13:49   |
Eclipse User |
|
|
|
Quote:
Can you describe precisely your needs?
I'm designing a new software, medium sized, and will use the Scout. However, I would like to use a persistence layer with the database (JPA) instead of using SQL in the Java code (as learned on tutorial).
Analyzing the scout-hibernate-demo project, I understand that the Hibernate piece is an eclipse plugin (OSGi), but I don't know the procedure to perform this task (create a hibernate plugin).
So I thought if there was a manual about how the scout-hibernate-demo was created, I could understand how to integrate these two frameworks, Hibernate and Scout.
Quote:
What are your blocking points?
- Have already Hibernate know-how?
- Have you enough know-how?
Specifically on Hibernate I don't have in-depth know-how. My JPA knowledge was acquired with eclipse-link.
For right now I would like to understand how to integrate the these frameworks (Scout & Hibernate).
Quote:
In my company, our main product (big scout based application) is using hibernate. It is in production! it is working.
We have started to build know-how in these domains (OSGi and Hibernate is also a big deal) and we will be happy to share.
Documenting "Scout+Hibernate" is on the roadmap, but it takes time. We will be happy to help if we can.
Good to know that there is a real case using these technologies together.
Thank you for your attention. I'll be happy with any material on this topic.
I'll see the link to learn how to integrate OSGi and Hibernate.
regards,
henrique
[Updated on: Wed, 29 May 2013 16:43] by Moderator
|
|
|
|
|
|
Re: Scout And Hibernate [message #1061444 is a reply to message #1061408] |
Fri, 31 May 2013 12:05  |
Eclipse User |
|
|
|
Henrique Meira wrote on Fri, 31 May 2013 09:51Do you add a dependency in plugin.xml under server package?
in the plugin.xml of the scout server package I add only a dependency on my backend service bundle, as I do not want, that the scout server has a direct access to my DAO and to hibernate.
simplified:
Scout server plugin.xml
Bundle-Name: org.example.scout.myapp.server
Require-Bundle: org.example.myapp.service,org.example.myapp.model
Backend Service bundle
Bundle-Name: org.example.scout.myapp.service
Require-Bundle: org.example.myapp.business,org.example.myapp.model
Backend Business bundle
Bundle-Name: org.example.scout.myapp.business
Require-Bundle: org.example.myapp.persistence,org.example.myapp.model
Backend Persistence bundle
Bundle-Name: org.example.scout.myapp.peristence
Require-Bundle: org.example.myhibernate,org.example.myapp.model
Eclipse-RegisterBuddy: org.example.myhibernate
MyHibernate Bundle (osgi wrapper for hibernate library)
Bundle-Name: org.example.myhibernate
Bundle-ClassPath: jars/hibernatexxxx.jar ....
Export-Package: org.hibernate.xxxx ....
Eclipse-BuddyPolicy: registered
|
|
|
Powered by
FUDForum. Page generated in 0.05345 seconds