[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.jsr220-orm] Id field DDL generation, embeddable superclass

Environment: Windows XP, MySQL 5.0.x (using 4.0/1 in orm), orm 0.9.4, eclipse 3.1.1
jboss 4.0.3SP1
java 1.5.xxx


Problem #1:
Trying to get an ID field to generate MySQL DDL that has auto-increment AND as primary key field. I've tried AUTO, IDENTITY, and SEQUENCE and none of them allow me to do this. Should I be able to?


AUTO - primary key, but not auto-incrment
IDENTITY - auto-increment but not primary key
SEQUENCE - primary key, but not auto-increment

Thoughts?

Problem #2:
I have an EmbeddableSuperclass for my entity that defines "common" entity fields. The DDL generator is creating a table for this superclass. It doesn't seem that it should.