I don't think you should start your own transaction. Remove the
beginTransaction().
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Nov 28, 2012, at 2:59 PM, Pillar wrote:
> Unless I'm understanding it wrong, the @CommitAfter on my method isn't
> committing the transaction.
>
> @CommitAfter
> public void call() {
> Session s = HibernateUtils.getSessionFactory().openSession();
> s.beginTransaction();
> User u = new User();
> u.setUsername("Pillar");
> u.setEmail("[email protected]");
> u.setPassword("poof");
> s.save(u);
> }
>
> Once execution exits this method and my page is rendered, I check my
> database and there is no entry for the above user.
>
> I'm on Tapestry 5.3 and have all the dependencies for tapestry-hibernate.
>
> What am I doing wrong?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/CommitAfter-not-committing-my-transaction-tp5718364.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>