command « Schema « JPA Q&A





1. how can i make schema export t NOT to produce drop commands.    forum.hibernate.org

i am using "schemaexport" task from ant to create sql script for MSSQL dialect (MSSQL jdbc). however, it creates the sql script starting with drop commands. Since there is nothing to drop, the tool we are using to run the script is giving an error and not proceeding (osql). - is there any way not to produce DROP commands - a ...

2. Command-line SchemaExport can't find classes    forum.hibernate.org

I'm using Hibernate (2.1 with extensions 2.1.2) to try and save time by not having to implement my own persistence layer. That means I'm lazy, which means I'd like to get Hibernate to autogenerate as much as possible. I got hbm2java working after some classpath issues, but hbm2ddl (SchemaExport) won't work, saying that it can't find my persistent classes. I'm using ...

3. using SchemaExport command with -output parameter resulting    forum.hibernate.org

Hi all, I tried to run the SchemaExport utility to generate the SQL schema. When I run that using C:> java net.sf.hibernate.tool.hbm2ddl.SchemaExport Player.hbm.xml Team.hbm.xml It generated the schema in the data base successfully. However I wanted to get the schema genarete SQL statements to a file. Therefor I tried to use the command with -output option as follows; C:> java net.sf.hibernate.tool.hbm2ddl.SchemaExport ...

4. sesionFactory per user schema or command set search_path    forum.hibernate.org

Every schema is identical, I assume? We have done the set search_path thing you are mentioning, and it has worked very well for us. We wrapped the Hibernate Session and every call to beginTransaction explicity sets the search_path on the connection. (The first real problem we've hit with this is now that we are trying to cluster the db, the clustering ...