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, stripes-users-requ...@lists.sourceforge.net wrote:
Send Stripes-users mailing list submissions to
        stripes-users@lists.sourceforge.net

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
        stripes-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        stripes-users-ow...@lists.sourceforge.net

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 <rgras...@gmail.com>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <stripes-users@lists.sourceforge.net>
Message-ID:
        <cadonxeoust0jbe38tdbs9wxdscvooccbvnfvar3dsak50fi...@mail.gmail.com>
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 <parveenyadavtit...@gmail.com
> 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
> Stripes-users@lists.sourceforge.net
> 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 <tcole...@autowares.com>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <stripes-users@lists.sourceforge.net>
Message-ID: <06e44255-8b1d-4150-90a4-bdaad0a86...@autowares.com>
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 <ilu...@gmail.com>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <stripes-users@lists.sourceforge.net>
Message-ID:
        <camsyvl+eoc7bv6jno19a_bknqm88dtv3xamelj5rs7rq3yv...@mail.gmail.com>
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 <tcole...@autowares.com>:

>
> 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
> Stripes-users@lists.sourceforge.net
> 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 <r...@rvkb.com>
Subject: Re: [Stripes-users] Integrate Hibernate or eBean with Stripes
To: Stripes Users List <stripes-users@lists.sourceforge.net>
Message-ID: <55d78a7e.c365b40a.c392.ffffe...@mx.google.com>
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" <tcole...@autowares.com>
Envoy? : ?21/?08/?2015 19:58
??: "Stripes Users List" <stripes-users@lists.sourceforge.net>
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


End of Stripes-users Digest, Vol 109, Issue 3
*********************************************
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to