Thanks so much but that's not exactly what I'm looking for. The problem is that my application will perform dynamic tables creation. For example, my application receives information on what I want this new table to look like, number of fields or columns, datatypes for each of them, their names and all elements in a table creation. Then, I must have a method, that constructs the sentence dynamically with the provided information and executes it. So with each new calling to that method the sentence will be different. And I want to achieve the table creation with Hibernate, because I don't want this to be platform-dependant, and as I am also using Hibernate for other issues in the application, I tried to do it using SQLQuery. I realized that SQLQuery only works for SELECT sentences, so I am not able to do it and I will not perform dynamic inserts into these new tables (which is the next step). I just wanna know if it is not possible in any other way with Hibernate so I can stop trying and start to implement another solution for this issue. Thanks!!
|