I have written Entity classes for persisting my buisness data and I believe same is done with jbpm5 classes. So we don't need hbm.xml files.
I am creating a tasks for a user on my servlet hit and fetching them on another hit with different params being passed. As far as application is running I can see the tasks list returning from Mina task client ; but nothing in database.(So i am sure tasks are getting created.)