Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsScout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/875671/#msg_875671
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
]]>Panos Bariamis2012-05-23T06:51:54-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/875676/#msg_875676
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).]]>Ivan Motsch2012-05-23T07:03:24-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/875681/#msg_875681
Is there a manual explain how i could setup hibernate in scout and how to use it?]]>Panos Bariamis2012-05-23T07:09:29-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/895612/#msg_895612
I would be interested in hibernate support as well. If you have a few pointers where to start from ?
just started learning up on scout though
-anirban]]>anirban c2012-07-13T19:26:42-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/896110/#msg_896110
https://github.com/ahoegger/scout-hibernate-demo. Requires a Eclipse for Scout Developers featured with eGit from the Juno repository.
Hibernate KnowHow to have a valid reference implementation
Let me know if your need write access to the github repository.
-andreas]]>2012-07-17T09:42:22-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/896254/#msg_896254
checking it out now and will give it a try with a ref impl with your example
-anirban]]>anirban c2012-07-17T18:01:43-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1060884/#msg_1060884
Do you found any documentation, manual or tutorial to explain how to use the https://github.com/ahoegger/scout-hibernate-demo ?
I'm interested to use Scout with Hibernate, but I don't know how to start.
regards,
henrique.]]>Henrique Meira2013-05-28T20:21:42-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1060987/#msg_1060987
Can you describe precisely your needs?
What are your blocking points?
- Have already Hibernate know-how?
- Have you enough know-how?
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.
]]>Jeremie Bresson2013-05-29T12:27:31-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1061064/#msg_1061064
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]]>Henrique Meira2013-05-29T17:49:25-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1061312/#msg_1061312
we had the same requirement, that we do not used the SQL mechanism as presented in the tutorials. In fact we use a classical multi tier backend (service layer, business layer, persistence layer). For each of the backend layers we have a "standard" Eclipse Java (Maven) project with the speciality that we add an OSGI manifest. This way we can use this backend functionality the same way as plugins.
For hibernate we build a wrapper project which makes out of the standard hibernate library a osgi bundle (see http://bndtools.org/ or the maven plugin org.apache.felix:maven-bundle-plugin). If you have experiences with EclipseLink it could be the easier way to use EclipseLink instead of Hibernate...this shouldn't change anything in the architecture).
We see the scout server part as part of the front-end and do not add any business logic or database access to it.
From the scout server we call the backend with a factory method BACKEND,getService() to have the same mechanism as Scout Client uses to call Scout Server SERVICES.getService(). The service calls the business layer and business layer calls the persistence layer (DAO) which accesses the database using Hibernate.
Furthermore we have a "model" project where we have defined all the domain model classes which are mapped to database tables. We try directly to use these model classes as DTO and use them across all layers - also in the scout client.
Hope his gives you some ideas.
Rene
]]>Rene Eigenheer2013-05-31T07:40:02-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1061408/#msg_1061408
I liked your concept.
But, how do you integrates the hibernate osgi bundled with the scout?
Do you add a dependency in plugin.xml under server package?]]>Henrique Meira2013-05-31T13:51:51-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1061423/#msg_1061423
HHH-7527). However you can add them in an OSGi bundle.
That what we do in org.hibernate4.lib.fragment. The idea of this fragment is that the dependency to hibernate might also be provided by your application server if you prefer.
The plugin org.hibernate4.osgi is about fixing Hibernate to run in an OSGi environment (From what I understood, you need to change some classloader stuff. See also this interview: JBoss Releases Hibernate 4.0, answer to the question "How important is OSGI for you? How close is Hibernate to full OSGI support?").
I hope this helps.
(do not hesitate to ask until you have understood. I do not have so much knowledge myself, but I can ask around).
]]>Jeremie Bresson2013-05-31T14:42:44-00:00Re: Scout And Hibernate
https://www.eclipse.org/forums/index.php/mv/msg/354498/1061444/#msg_1061444
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.
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