Showing posts from March, 2012

Smooks Entity Persistence Frameworks - Hibernate

With the new Smooks Persistence cartridge in Smooks 1.2, we can directly use several entity persistence frameworks from within Smooks (Hibernate, JPA etc). So in this blog post let's try out the Hibernate sample specified in here . Since smooks have given the basic configurations only, this blog post is going to assist the peolple who need full implementation. What we are going to do is process the following XML message and store the product information to a bean and persist the order information. input.xml ------------ <order> <ordernumber>1</ordernumber> <customer>123456</customer> <order-items> <order-item> <product>11</product> <quantity>2</quantity> </order-item> <order-item> <product>22</product> <quantity>7</quantity> </order-item> </order-items> </or