Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread abangkis
Ah, you are right. That helps a lot. Such a newbie mistake :) Thanks Chris & Kalle. On Thu, Feb 4, 2016 at 11:43 PM, Kalle Korhonen wrote: > Yes Chris is right (see > > https://github.com/apache/tapestry-5/blob/master/tapestry-hibernate/src/main/java/org/apache/tapestry5/internal/hibernate/Comm

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread Kalle Korhonen
Yes Chris is right (see https://github.com/apache/tapestry-5/blob/master/tapestry-hibernate/src/main/java/org/apache/tapestry5/internal/hibernate/CommitAfterWorker.java), you need to depend on tapestry-hibernate. tapestry-hibernate-core is for non-web projects (where you need the advisor to tell to

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread Chris Poulsen
I have not used the hibernate integration myself. But my guess is that you should depend on tapestry-hibernate instead of tapestry-hibernate-core As far as I can tell from the sources, the CommitAfterWorker class lives in that module. HTH. -- Chris On Thu, Feb 4, 2016 at 2:39 PM, abangkis

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread abangkis
Hi Dmitry, thanks for the response. I understand that if you wan't to do a commit from your DAO (for example if your DAO is invoke by a scheduler, or other non user interaction) you need to add the transaction advice. But in my understanding if the action is from a tapestry page, you just need to a

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread Dmitry Gusev
Hi, I think you're missing the transaction advice, it's mentioned at the bottom on this page: https://tapestry.apache.org/hibernate-user-guide.html Finally, you should use the HibernateTransactionAdvisor to add transaction advice: @Match("*DAO") public static void adviseTransactions(HibernateTran

Re: Commit After not working after migrating to IntelliJ

2016-02-04 Thread abangkis
I managed to setup and import the simple project to github if anyone have the time to look at it. https://github.com/abangkis/CommitTest. First time using git, let me know if something is missing. Thanks On Thu, Feb 4, 2016 at 5:53 AM, abangkis wrote: > Hello, I've just recently migrated from E

Commit After not working after migrating to IntelliJ

2016-02-03 Thread abangkis
Hello, I've just recently migrated from Eclipse + Ant + Tomcat to IntelliJ IDEA 15 CE + Gradle + Jetty. At first all of my development setup is working fine and then I realized that my @CommitAfter annotation is not being honored, while other query runs fine. I'm using Tapestry 5.4.0 from jcenter.