hi all
I have one problem.
I have hibernate aplication and I have to create new object mapipng.
I used this code:
Code:
HibernateProvider.refresh();
SchemaExport se = new SchemaExpor(HibernateProvider.getConfiguration());
se.drop(true, true);
se.create(true, true);
HibernateProvider.getSession().connection().commit();
but until now I have to keep data in tables, so dropping is impossible...
and SchemaUpdate doesn't work correctly...
Code:
Session session = HibernateProvider.getSession();
SchemaUpdate su = new SchemaUpdate( HibernateProvider.getConfiguration());
su.execute( true, false);
session.flush();
session.connection().commit();
any help please?
thanx