Integrating GWT and Hibernate without Gilead?

2009-02-25 Thread hezjing
Hi I'm tried Gilead, and it works great when integrating GWT and Hibernate. I also read from the forum that we can integrate GWT and Hibernate without Gilead (and it is faster?). I'm wondering, how should we handle the lazy loading without using library like Gilead? I'm still googling for the ex

Re: Integrating GWT and Hibernate without Gilead?

2009-02-26 Thread Felipe Cypriano
Maybe what you're looking for is JSON, XML or DTO (Data Transfer Object). In those cases you will do the bridge between the hibernate model and the data sent to GWT client, not Gilead anymore. Regards, --- Felipe Marin Cypriano Vitória - ES http://www.linkedin.com/in/felipecypriano On Wed, Fe

Re: Integrating GWT and Hibernate without Gilead?

2009-02-26 Thread Arthur Kalmenson
You don't necessarily have to use JSON, XML or DTOs. We reuse our Hibernate entities on the client side. However, you need to keep in mind that all types of collections (Lists, Maps, Sets, etc) are turned into a Hibernate specific Persistent* object when you get the object from the database. An e

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread noon
Hello, Just one question : if you app works with Gilead, why do you want to work without it ? Would you plan to work without Hibernate even if JDBC is faster ?? (ok, that's 2 questions ;-)...) Just to know... Regards Bruno PS : using Dozer for Hibernate and GWT is a pain. Really. That's just t

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread hezjing
Hi Bruno I'm using Gilead, but I also read about the discussion integrating GWT and Hibernate without Gilead. I'm wondering of how other do this without Gilead, just try to learn if there is an alternative way. On Fri, Feb 27, 2009 at 5:50 PM, noon wrote: > > Hello, > >

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread Arthur Kalmenson
> PS : using Dozer for Hibernate and GWT is a pain. Really. That's just > the first reason why I develop Hibernate4GWT (now Gilead) ! How is it pain? It's one line of code: (SomeDomainObject) dozerMapper.map(retrievedFromHibernate, SomeDomainObject.class) -- Arthur Kalmenson On Fri, Feb 27,

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread Rob Smith
Bruno, Arthur likes to send his whole object model from the server to the client ;) Users should be careful taking advise from Arthur. He *loves* giving advise. The only problem is that they are terrible and on subjects that he has little or no knowledge. Make sure you take a second opinion befor

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread Arthur Kalmenson
It really depends on what you're doing and how large your object graph is. For example, I would not recommend sending down full objects for search results. We have a separate DTO for that and once the user selects a particular search result, we retrieve the full object and the Dozer mapping works

Re: Integrating GWT and Hibernate without Gilead?

2009-02-27 Thread Sumit Chandel
Hello everyone, A reminder to be respectful, friendly and constructive when posting on the forums. All technical contributions are welcome and appreciated, however posts marking disrespect for other community members or inflammatory remarks will not be tolerated. That's not to say that it isn't ok

Re: Integrating GWT and Hibernate without Gilead?

2009-02-28 Thread jdwy
My project http://code.google.com/p/tocollege-net/ uses a HibernateFilter that I hacked together. I think it's an fine approach in theory, but GWT doesn't make it easy to plug in to the serialization process at the right points so it can be a pain when GWT changes its internals. The code is here: