Re: Sending Hibernate JPA persistent entities to the client

2009-01-09 Thread Martin

we are doing it successful with toplink JPA ... check out http://toools.org

cheers

On Dec 18 2008, 12:31 am, Smith  wrote:
> All,
>
> With GWT 1.5, is it possible to send the persistent hibernate entities
> directly to the client, without creating  separate client side
> objects? I know it's not a good pattern, but just curious if that
> would work.
>
> I have read this didn't work with GWT 1.4 since annotations were not
> supported, but since GWT 1.5 supports annotations, this should be
> possible, right?
>
> Thanks,
--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending Hibernate JPA persistent entities to the client

2008-12-18 Thread Arthur Kalmenson

This question has been asked and answered numerous times. Please
search the group before asking.

With regards to your question, it is possible, you just need to watch
out for Hibernate specific Collections like PersistentSet and
PersistentList. I just copy them to an explicit HashSet or ArrayList
before sending them to the client side. Another solution is using
Dozer as Stephen mentioned. This would involve creating DTOs though.

--
Arthur Kalmenson



On Wed, Dec 17, 2008 at 6:31 PM, Smith  wrote:
>
> All,
>
> With GWT 1.5, is it possible to send the persistent hibernate entities
> directly to the client, without creating  separate client side
> objects? I know it's not a good pattern, but just curious if that
> would work.
>
> I have read this didn't work with GWT 1.4 since annotations were not
> supported, but since GWT 1.5 supports annotations, this should be
> possible, right?
>
>
> Thanks,
> >
>

--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending Hibernate JPA persistent entities to the client

2008-12-18 Thread stephen.sm...@paretopartners.com

I used openJPA and then used Dozer to map the object to get around the
types issue. It was really simple to use and id recomend it to anyone.

I dont know too much about Hibernate but i suspect dozer could be used
for those objects aswell

On Dec 17, 11:31 pm, Smith  wrote:
> All,
>
> With GWT 1.5, is it possible to send the persistent hibernate entities
> directly to the client, without creating  separate client side
> objects? I know it's not a good pattern, but just curious if that
> would work.
>
> I have read this didn't work with GWT 1.4 since annotations were not
> supported, but since GWT 1.5 supports annotations, this should be
> possible, right?
>
> Thanks,
--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending Hibernate JPA persistent entities to the client

2008-12-18 Thread Harald Pehl

Hi,

take a look at Gilead: http://noon.gilead.free.fr/gilead/ (previously
known as hibernate4gwt). I used it successfully together with Spring &
Hibernate in my last project.

Greetings
Harald

On 18 Dez., 00:31, Smith  wrote:
> All,
>
> With GWT 1.5, is it possible to send the persistent hibernate entities
> directly to the client, without creating  separate client side
> objects? I know it's not a good pattern, but just curious if that
> would work.
>
> I have read this didn't work with GWT 1.4 since annotations were not
> supported, but since GWT 1.5 supports annotations, this should be
> possible, right?
>
> Thanks,

--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Sending Hibernate JPA persistent entities to the client

2008-12-17 Thread Smith

All,

With GWT 1.5, is it possible to send the persistent hibernate entities
directly to the client, without creating  separate client side
objects? I know it's not a good pattern, but just curious if that
would work.

I have read this didn't work with GWT 1.4 since annotations were not
supported, but since GWT 1.5 supports annotations, this should be
possible, right?


Thanks,
--~--~-~--~~~---~--~~
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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---