You can't do exactly what you asked but you can just make your hibernate object just a wrapper for your database schema then build a Tapestry service for the business logic. If you make a schema change or an interface change you'll have to restart but otherwise not. I often merge the DTO and business logic into the same service. I'm sure there is some reason why that's a bad idea but it works pretty well with Tapestry class reloading.
Also my hibernate objects also tend to have at least 5 annotations per field. They look pretty ugly and this way I rarely have to see them, On Fri, Jun 13, 2014 at 8:56 AM, Dmitry Gusev <dmitry.gu...@gmail.com> wrote: > JRebel is not the only option, there are some open source alternatives: > > http://stackoverflow.com/questions/7998669/redeploy-alternatives-to-jrebel > > > On Fri, Jun 13, 2014 at 5:18 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Thu, 12 Jun 2014 16:32:11 -0300, Ilya Obshadko < > ilya.obsha...@gmail.com> > > wrote: > > > > Hey guys, > >> > > > > Hi! > > > > > > Could anyone explain - is that possible to enable live class reloading > >> for user-defined packages? > >> > > > > No. Tapestry and Tapestry-IoC can only do that due to having their own > > classloaders, so classes are changed when loading. It only works when and > > because Tapestry or Tapestry-IoC are instantiating the classes to be > > live-class-reloaded. > > > > > > For example, I would like to implement live reloading for Hibernate > >> entities and enum classes that I use in my application (the former > >> probably requires Hibernate re-initialization, while the latter might > >> require > >> reloading of any other dependent classes). Is it possible to do that? > >> > > > > Nope. Tapestry's and Tapestry-IoC's live class reloading are very > specific > > to their own context (proxied services in Tapestry-IoC, pages, components > > and mixins in Tapestry). Doing that in a generic way is a way more > complex > > problem. As Lance said, JRebel is the way to go for whole JVM live class > > reloading. > > > > -- > > Thiago H. de Paula Figueiredo > > Tapestry, Java and Hibernate consultant and developer > > http://machina.com.br > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > -- > Dmitry Gusev > > AnjLab Team > http://anjlab.com >