metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hosur Narahari (JIRA)" <>
Subject [jira] [Created] (METAMODEL-131) Create table with composite primary key gives error.
Date Sun, 05 Apr 2015 14:32:35 GMT
Hosur Narahari created METAMODEL-131:

             Summary: Create table with composite primary key gives error.
                 Key: METAMODEL-131
             Project: Apache MetaModel
          Issue Type: Bug
            Reporter: Hosur Narahari

Creating table with primary key is not possible since while generating sql we add "PRIMARY
KEY" keyword to each column which results in error in case of composite primary keys. Below
is the code.

context.executeUpdate(new UpdateScript() {
			public void run(UpdateCallback callback) {
				callback.createTable("amass", "test").

I am using mysql. Am I using it in the wrong way?

This message was sent by Atlassian JIRA

View raw message