I cannot solve your problem unfortunately, but I have something similar. I don't have XSDs about the data schema. I only have a series of records, but I don't know the number of the fields/columns, type of the fields/columns.
I want to read that into a JavaBean, and the question is how I can persist and handle that dynamically run-time created JavaBean class with Hibernate. Since I don't know the above mentioned things, I cannot configure the Hibernate mapping compile time.
See more:
https://forum.hibernate.org/viewtopic.php?f=1&t=1009680