I use Entity objects directly as well. I read the thread you mentioned and it sounds like you do not use Spring. In our application we are using spring and so the solutions are a bit different. I just wanted to offer up another solution to the problem when using Spring to manage transactions and the hibernate session.
On Fri, Jun 19, 2009 at 10:42:16AM +0300, Martin Makundi exclaimed: >> 1) Use DTOs >> I think all of these have some issues. Using DTOs is code heavy. > >I use @Entity objects directly as objects. No overhead. > >There was some discussion about Hibernate and wicket in: >* http://www.nabble.com/JPA-EntityManager-storage-td23888325.html >* http://www.mail-archive.com/users@wicket.apache.org/msg37772.html > >** >Martin > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org