Re: Queries in designing web application using gwt, spring & hibernate

2008-12-02 Thread eggsy84

Hi there

Yeah hibernate4GWT should serve to do this. Try searching the forums
for that it has been discussed a lot and is open sourced.

Eggsy

On Dec 1, 1:13 pm, huage <[EMAIL PROTECTED]> wrote:
> Is there a way to integrate hibernate with gwt without using custom
> DTOs?
>
> On 25 nov, 14:50, eggsy84 <[EMAIL PROTECTED]> wrote:
>
> > Hi Amol
>
> > I have wrote a quick tutorial on integrating the 3 technologies
>
> > It doesn't address Hibernate4GWT or Security but it does highlight the
> > integration of the three technologies and one way it can be achieved:
>
> > Part One 
> > -http://eggsylife.blogspot.com/2007/10/well-this-tutorial-aims-at-help...
> > Part Two 
> > -http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-too...
> > Part Three 
> > -http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-too...
> > Part Four 
> > -http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-too...
>
> > Eggsy
>
> > On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote:
>
> > > Hi
> > > I am designing a web application using GWT, spring &hibernate. I have
> > > some queries.
>
> > > 1. What is the best way to submit form data? Should I use gwt form
> > > submit or collect parameters and invoke service method by passing in
> > > all form field values?
>
> > > 2. How should I handle security aspect, for example validating each
> > > request and make sure only authorized user invoke services?
>
> > > 3. How does session work with GWT?  Is there any sample web
> > > application developed using gwt, spring andhibernatethat can guide
> > > me?
>
> > > Any help will be highly appreciated
> > > Regards
> > > amol
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Queries in designing web application using gwt, spring & hibernate

2008-12-01 Thread huage

Is there a way to integrate hibernate with gwt without using custom
DTOs?

On 25 nov, 14:50, eggsy84 <[EMAIL PROTECTED]> wrote:
> Hi Amol
>
> I have wrote a quick tutorial on integrating the 3 technologies
>
> It doesn't address Hibernate4GWT or Security but it does highlight the
> integration of the three technologies and one way it can be achieved:
>
> Part One 
> -http://eggsylife.blogspot.com/2007/10/well-this-tutorial-aims-at-help...
> Part Two 
> -http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-too...
> Part Three 
> -http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-too...
> Part Four 
> -http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-too...
>
> Eggsy
>
> On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote:
>
> > Hi
> > I am designing a web application using GWT, spring &hibernate. I have
> > some queries.
>
> > 1. What is the best way to submit form data? Should I use gwt form
> > submit or collect parameters and invoke service method by passing in
> > all form field values?
>
> > 2. How should I handle security aspect, for example validating each
> > request and make sure only authorized user invoke services?
>
> > 3. How does session work with GWT?  Is there any sample web
> > application developed using gwt, spring andhibernatethat can guide
> > me?
>
> > Any help will be highly appreciated
> > Regards
> > amol

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Queries in designing web application using gwt, spring & hibernate

2008-11-25 Thread eggsy84

Hi Amol

I have wrote a quick tutorial on integrating the 3 technologies

It doesn't address Hibernate4GWT or Security but it does highlight the
integration of the three technologies and one way it can be achieved:

Part One - 
http://eggsylife.blogspot.com/2007/10/well-this-tutorial-aims-at-helping.html
Part Two - 
http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html
Part Three - 
http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-toolkit.html
Part Four - 
http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-toolkit.html


Eggsy


On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote:
> Hi
> I am designing a web application using GWT, spring & hibernate. I have
> some queries.
>
> 1. What is the best way to submit form data? Should I use gwt form
> submit or collect parameters and invoke service method by passing in
> all form field values?
>
> 2. How should I handle security aspect, for example validating each
> request and make sure only authorized user invoke services?
>
> 3. How does session work with GWT?  Is there any sample web
> application developed using gwt, spring and hibernate that can guide
> me?
>
> Any help will be highly appreciated
> Regards
> amol
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Queries in designing web application using gwt, spring & hibernate

2008-11-25 Thread gregor

Hi Armol,

On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote:
> Hi
> I am designing a web application using GWT, spring & hibernate. I have
> some queries.
>
> 1. What is the best way to submit form data? Should I use gwt form
> submit or collect parameters and invoke service method by passing in
> all form field values?

I would start by looking at hibernate4gwt, if only because of the
concise information it's documentation gives about integrating GWT
with Hibernate and various options. It is based on GWR RPC which I
would think that is your probably best option - it is very neat.

http://hibernate4gwt.sourceforge.net/

In considering your options I would head straight for information
around the central problem of serving Hibernate managed domain classes
to GWT: Hibernate classes are adorned with proxies and "magic
collections" to deal with lazy loading and this makes them
incompatible with GWT JRE emulation. Hibernate4gwt automatically
translates Hibernate managed classes into GWT friendly DTO versions
for transport to client, and restores and updates them on return for
you.

Whatever you do, you have to deal with this problem, and I would say
that you designed your own solution it would probably look very like
hibernate4gwt in the end.

>
> 2. How should I handle security aspect, for example validating each
> request and make sure only authorized user invoke services?
>

Check the group for (occasionally robust) opinion and debate on how
best to go about this. There is an article here which is also a good
starting point:

http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ


> 3. How does session work with GWT?  Is there any sample web
> application developed using gwt, spring and hibernate that can guide
> me?
>

Providing you use GWT RPC you are using RemoteServiceServlets
therefore you have access to HttpSession etc same as any servlet or
Struts action class. Another good reason to use GWT RPC if you are
using Spring. There are plenty of tutorials and articles about how to
integrate GWT with Spring - google "spring GWT inegration"

regards
gregor





> Any help will be highly appreciated
> Regards
> amol
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Queries in designing web application using gwt, spring & hibernate

2008-11-24 Thread Amol

Hi
I am designing a web application using GWT, spring & hibernate. I have
some queries.

1. What is the best way to submit form data? Should I use gwt form
submit or collect parameters and invoke service method by passing in
all form field values?

2. How should I handle security aspect, for example validating each
request and make sure only authorized user invoke services?

3. How does session work with GWT?  Is there any sample web
application developed using gwt, spring and hibernate that can guide
me?

Any help will be highly appreciated
Regards
amol


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---