Hi buddies!
I'm programming with Hibernate and EJB 3.0 on JBoss 6.0. In my project, I have some tables that contains the definition for other tables (as table name, fields, data types, etc.). And I need to create these entities dynamically, ie at runtime. I found code Class.forName and EclipseLink and I think this is not what I need, I need to create a class(entity) from the data in my table and map this class on hibernate, after this, instantiate the new dynamic entity and assign values to its properties and finally send the record to another database. Is this possible, if so, how I do it? Thank you for your help (Sorry for my bad english).
|