index « Schema « JPA Q&A





1. Hibernate Schema update issue    stackoverflow.com

I've added a string field to my hibernate persistent class, and restarted the application. It started SchemaUpgrade, and resulted in several errors like this one:

2011-02-03 13:04:06,522 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful: ...

2. SchemaExport not creating index for FK columns any more    forum.hibernate.org

Hi, we switched from Hibernate 1.2.3 to Hibernate 2.0.2 and noticed that the SchemaExport tool is not any longer automatically generating indexes for foreign key columns. This was very convenient under Hibernate 1.2.x. I haven't found any reference to this fact in the release notes of Hibernate 2, the migration guide or the forums. Before I hack something into the SchemaExport ...

3. Can I prevent SchemaUpdate from adding indexes?    forum.hibernate.org

I use net.sf.hibernate.tool.hbm2ddl.SchemaUpdate to update the schema for my MySQL database, but everytime I run it its add indexes even though the index has already been added, is there a way to turn this off somehow (short of hacking source) for example I just added 2 mappings definition and definitionGroup, when I ran SchemaUpdate it added the 2 tables but also ...

4. SchemaUpdate-add index to existing table-MySQL?    forum.hibernate.org

I am devoloping an application to analyze an arbitrary data set (output from a simulation) provided to our organization in the form of fully populated MySQL (MyISAM) tables (the simulation is run by another organization, so we have no say in the schema). The data base that we were provided is comprised of many interrelated tables, with absolutely no constraints, indices, ...

6. hibernate schema generator adds index twice?    forum.hibernate.org

That looks perfectly fine to me, the primary key constraints plus constraints that the FKs must match PKs on the other tables. But what bugs me is how you got the 'primary key' constraint on the link table. I've spent ages trying add something to a many-to-many mapping to put a uniqueness constraint on the link table. Can you tell me ...

7. SchemaUpdate doesn't create indexes (Oracle)    forum.hibernate.org

Beginner Joined: Thu Oct 06, 2005 7:34 pm Posts: 20 I've gone through the documentation, Jira and the forums and I can't seem to find a good answer on this issue. I have a mapping file with two indexes. They get created or put in the generated SQL script if I use the SchemaExportTask. If I use hibernate.hbm2ddl.auto=update in my Hibernate ...

8. SchemaUpdate does not create an INDEX    forum.hibernate.org

Hi all, I have the latest version of Hibernate and I use Oracle 11g. When I try to add an Index on a column using the SchemaUpdate, the Index is not created but when using the SchemaExport (create), the index is created properly. I saw some topics regarding this issue but unfortunately I didn't get the answer. Does anybody know why ...

9. Annotated list, Index column not created in db schema    forum.hibernate.org

Hello, I am using Hibernate 3.3.0.SP1 with Hibernate Annotations 3.4.0.GA and have a problem with the creation of a database schema with mapped lists with Postgres 8.3.x, the PostGIS extensions and the PostGIS dialect. I have two POJOS with annotations Code: @Entity @Table(name = "A") public class A implements Serializable { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) ...