I have to import a series of records from a file input. The schema of the data is only known during run-time. DynaBeans are dropped long time ago (
https://forums.hibernate.org/viewtopic.php?t=937247), so let's say I build up a JavaBean dynamically from the data run-time. How can I persist that?
Hibernate documentation's chapter 4.4 on Dynamic models only talks about Hash property collections (
http://docs.jboss.org/hibernate/core/3.3/reference/en/html/persistent-classes.html#persistent-classes-dynamicmodels), but the bigger problem is that even this example needs xml configuration compile time (if I undertsand it correctly)! Which is nonsense, because I don't know the schema in advance, that's why I'll have to use JavaBeans, and I also won't be able to provide a mapping in advance, I don't know the class property<->table columns in advance, only run-time!
So how can I do that? Can you give me some example codes, links? Explanation?
Thanks,
Csaba Toth