I am new to hibernate and I need to create database table on fly. Which means I will be taking table details from User from UI. Lets say we restrict the user on number of table attributes(column) to 5 or so.
I've gone through various tutorials on hibernate and I see we can create a table but for that we need a class beforehand. But in my case everything is going to be dynamic.
As compared to JDBC, we can directly shoot a CREATE TABLE query and pass the table parameters into the query in java code.
My web application uses a REST web service, spring 3 framework and MySQL as database.
Any tutorial links or sample code would be really helpful
Thanks