In this scenario we parse a formal business document describing purchase order. The BusinessDocParser
therefore belongs to the domain.
In this scenario we want to handle purchase orders of infinite (unlimited) size. Imported data structures are big and complex. Here we present a technique of direct access to the store without core tier mediation.
We use Validator
to perform basic validation on imported data structures.
We can save some by giving up with business parser. Instead, we parse business document locally in the app
tier. With this approach we can use JPA datamodel directly when parsing.
Import process can be further simplified and speed upm by using plain JDBC calls instead of JPA.