Re: Stripes-users Digest, Vol 109, Issue 3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Stripes-users Digest, Vol 109, Issue 3

Heather and Jon Turgeon

Too funny, I also worked at ATG (small company) as a developer in Cambridge. I am using Stripes with Hibernate for my site venturrfarther.com. As of yet I am not using Spring, just straight Hibernate. A bit different from the Repository... Take a look at the Hibernate examples, integration with Stripes is no different. I currently have no internet access ( sailing in Indonesia) or I would be more specific.

On Aug 22, 2015 4:31 AM, [hidden email] wrote:
Send Stripes-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/stripes-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Stripes-users digest..."


Today's Topics:

   1. Re: Integrate Hibernate or eBean with Stripes (Rick Grashel)
   2. Re: Integrate Hibernate or eBean with Stripes (Tom Coleman)
   3. Re: Integrate Hibernate or eBean with Stripes (Nestor Hernandez)
   4. Re: Integrate Hibernate or eBean with Stripes (Remi Vankeisbelck)


----------------------------------------------------------------------

Message: 1
Date: Fri, 21 Aug 2015 11:16:39 -0500
From: Rick Grashel <[hidden email]>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <[hidden email]>
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Yadav,

Something you should look at is implementing an Generic AbstractDAO
pattern.  In Java, this is a wonderful way to separate things at the domain
object level and allow for a high amount of re-use.  If you are using
Spring (which most Hibernate users are), take a look at this page:

http://www.codeproject.com/Articles/251166/The-Generic-DAO-pattern-in-Java-with-Spring-3-and

Once you have created your DAOs, you will want to make get accessible from
your Stripes ActionBeans by injecting them into a custom ActionBeanContext
that you create for your application (by implementing the ActionBeanContext
interface and declaring it in your web.xml -- see here
https://stripesframework.atlassian.net/wiki/display/STRIPES/Configuration+Reference).
Then, in your Stripes ActionBean, you end up with code like this:

int numberOfCustomers = getContext().getCustomerDAO().countAll();

I have been wanting to create an example Stripes project which uses
Hibernate and a simple in-memory database as an example of how easy it is
to do a full-stack application in Stripes, but I just haven't had the time
lately.

If you are building a more Ajax-oriented application, then you will want to
look at the "Rock and Roll" example in the Stripes main branch:

https://github.com/StripesFramework/stripes/tree/master/examples/src/main/java/net/sourceforge/stripes/examples/rockandroll

As you build a small example, please feel free to reach out here or come to
IRC for help (#stripes).  We're here to help you get up and running.  We've
all built large applications using Stripes, so we have a lot of experience
in doing it.

Thanks!

-- Rick


On Thu, Aug 20, 2015 at 7:27 PM, parveen yadav <[hidden email]
> wrote:

> Hi All,
>
> This is my first interaction with Stripes. The framework looks clean and
> simple. I come from Oracle Commerce(formally ATG) background and do not
> have
> experience with any other frameworks at all. I am unable to find any step
> by
> step guide to integrate Hibernate or EBean with stripes. The documentation
> (only for Hibernate) provided on the site is more for a experienced
> programmer.
>
> I am developing a portal related to real-estate. It will be really helpful
> if someone could help me out on integrating ebeans or hibernate with
> Stripes
>
> thanks
> yadav
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 21 Aug 2015 13:58:02 -0400
From: Tom Coleman <[hidden email]>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="us-ascii"


Check out stripersist:

http://sourceforge.net/projects/stripes-stuff/files/Stripersist/

There is a sample program in the distribution.

It simple and works like a charm.

On Aug 20, 2015, at 8:27 PM, parveen yadav wrote:

> Hi All,
>
> This is my first interaction with Stripes. The framework looks clean and
> simple. I come from Oracle Commerce(formally ATG) background and do not have
> experience with any other frameworks at all. I am unable to find any step by
> step guide to integrate Hibernate or EBean with stripes. The documentation
> (only for Hibernate) provided on the site is more for a experienced programmer.
>
> I am developing a portal related to real-estate. It will be really helpful
> if someone could help me out on integrating ebeans or hibernate with Stripes
>
> thanks
> yadav
>

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Fri, 21 Aug 2015 13:16:31 -0500
From: Nestor Hernandez <[hidden email]>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <[hidden email]>
Message-ID:
        <CAMsyVL+[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hi Yadav, Are you sure that you want to use the Hibernate API?, We have an
standard API for ORM that is called JPA and works with multiple
providers(Hibernate, EclipseLink, etc.)

If you're deploying to a Java EE server (Full or WebProfile) then i'ts very
easy to use JPA, because it all comes integrated. There are many Java EE
servers like TomEE, Glassfish, WebLogic.

This page has a good example in order to use JPA with EJB in TomEE
https://jaxenter.com/getting-started-with-apache-tomee-105824.html. Usually
only the configuration of the database is different in servers, the API is
the same .

Once you have your Dao you can inject (@Inject) in an ActionBean. In order
to do that get this plugin
https://github.com/StripesFramework/stripes-injection-enricher

Cheers!









2015-08-21 12:58 GMT-05:00 Tom Coleman <[hidden email]>:

>
> Check out stripersist:
>
> http://sourceforge.net/projects/stripes-stuff/files/Stripersist/
>
> There is a sample program in the distribution.
>
> It simple and works like a charm.
>
> On Aug 20, 2015, at 8:27 PM, parveen yadav wrote:
>
> Hi All,
>
> This is my first interaction with Stripes. The framework looks clean and
> simple. I come from Oracle Commerce(formally ATG) background and do not
> have
> experience with any other frameworks at all. I am unable to find any step
> by
> step guide to integrate Hibernate or EBean with stripes. The documentation
> (only for Hibernate) provided on the site is more for a experienced
> programmer.
>
> I am developing a portal related to real-estate. It will be really helpful
> if someone could help me out on integrating ebeans or hibernate with
> Stripes
>
> thanks
> yadav
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Fri, 21 Aug 2015 22:30:32 +0200
From: Remi Vankeisbelck <[hidden email]>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Nice, I didn't know it was still available.

We should move the code to gh and add some docs in the wiki ?

Cheers

R?mi

-----Message d'origine-----
De : "Tom Coleman" <[hidden email]>
Envoy? : ?21/?08/?2015 19:58
??: "Stripes Users List" <[hidden email]>
Objet : Re: [Stripes-users] Integrate Hibernate or eBean with Stripes



Check out stripersist:


http://sourceforge.net/projects/stripes-stuff/files/Stripersist/


There is a sample program in the distribution.


It simple and works like a charm.


On Aug 20, 2015, at 8:27 PM, parveen yadav wrote:


Hi All,

This is my first interaction with Stripes. The framework looks clean and
simple. I come from Oracle Commerce(formally ATG) background and do not have
experience with any other frameworks at all. I am unable to find any step by
step guide to integrate Hibernate or EBean with stripes. The documentation
(only for Hibernate) provided on the site is more for a experienced programmer.

I am developing a portal related to real-estate. It will be really helpful
if someone could help me out on integrating ebeans or hibernate with Stripes

thanks
yadav
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------


------------------------------

_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users


End of Stripes-users Digest, Vol 109, Issue 3
*********************************************

------------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users