Hello,
here's what I want to do:
I'm using Hibernate (3.3.2) to map my Ingres 10 database. My java entities are generated after a meta model, so we decided to use annotations to ease things.
What we want to do after the code generation is generate the DDL instructions to create the database so we use the hbm2ddl tool and we have something like:
Code:
drop table xxx;
create table xxx ...;
What I miss here are extra SQL statement to e.g. add privileges on tables, something like:
Code:
drop table xxx;
create table xxx ...;
grant xxx on table xxx;
I know I could use something called database-object to generate such statements but I think it's only available with the XML mapping. Can you confirm this?
If that is confirmed, do you see a better solution for doing such a thing?
Many thanks to all.