|Re: Scout And Hibernate [message #875676 is a reply to message #875671]
||Wed, 23 May 2012 07:03
| Ivan Motsch
Registered: March 2010
Using hibernate (or also eclipse link) is a good idea.|
Scout itself is not bound to a certain persistence technology.
Scout offers convenience for those not choosing hibernate to being able to use database in an easy way. Therefore the scout sql service is considered as a convenience feature and not a mandatory feature.
Maybe one architectural hint: Use hibernate / jpa on the scout server side of your application, including services, lookup services etc.
But use the scout formdata form bean objects to communicate with the ui forms. That way you have a good separation between client/ui side and server side (ui layer vs. service layer).
[Updated on: Wed, 23 May 2012 07:04]
Report message to a moderator
|Re: Scout And Hibernate [message #1061064 is a reply to message #1060987]
||Wed, 29 May 2013 17:49
| Henrique Meira
Registered: November 2012
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.
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).
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.
[Updated on: Wed, 29 May 2013 20:43]
Report message to a moderator
|Re: Scout And Hibernate [message #1061444 is a reply to message #1061408]
||Fri, 31 May 2013 16:05
| René Eigenheer
Registered: July 2009
Henrique Meira wrote on Fri, 31 May 2013 09:51|
Do 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.
Scout server plugin.xml
Backend Service bundle
Backend Business bundle
Backend Persistence bundle
MyHibernate Bundle (osgi wrapper for hibernate library)
Bundle-ClassPath: jars/hibernatexxxx.jar ....
Export-Package: org.hibernate.xxxx ....
Powered by FUDForum
. Page generated in 0.02204 seconds