primary key « Schema « JPA Q&A





1. How to transition an existing DB Schema without AUTO_INCREMENT primary key to a key with AUTO_INCREMENT?    stackoverflow.com

I have an application which was developed with HSQL DB and the problem is that we are migrating it to MySQL with JPA/Hibernate. The problem is that the old schema doesn't have ...

2. many-to-many schemaexport problem with primary key    forum.hibernate.org

Regular Joined: Sun Aug 01, 2004 6:49 pm Posts: 72 MySQL 4.0.14-Max, Hibernate 2.1.4 I use following many-to-many setup: User<----|Assignmnet|---->Project (see the mapping dtds below) The problem is that the primary key for the column id in Assignment is not created in the right way, It is not set to auto_increment, but the column user_id is set to auto_increment. mysql> show ...