I have made some progress on learning how to generate java from hbm.xml files in Ant.
However, it seems that your hibernate.cfg.xml is not in sync with the files in com/floreantpos/model
e.g. Coupon.hbm.xml is in the hibernate.cfg.xml but not in the model directory. Instead there is a CouponAndDiscount.hbm.xml file.
There are other files not matching too.
Before I try further can you tell me if the hbm/hibernate files in the v1.0_3 tarball are correct / up to date?
// Generated Aug 28, 2010 12:42:02 PM by Hibernate Tools 3.2.0.b9
The java files generated by hbm2java from your *.hbm.xml files look very different from the BaseXXX.java files you have.
Mine do not have hashCode/compareTo/equals methods or the add methods - there are other differences.
Have you used some special custom templates for hbm2java?
Can you release them and your generation tools / ant tasks for the hibernate stuff?