Re: field with auto-increment

Raoul Pierre <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
Gene,

I must do some wrong thing, as with Mysql I get also error like:

GRAVE: Stack for error from createdb, Key: 'nodb Message: Unable to 
create database tables:Unable to build/execute create statement 'CREATE 
TABLE T_worker (workerId INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 
entrance DATE, ident VARCHAR(20) not null, personId INTEGER not null)' 
for table 'T_worker'Unexpected token: AUTO_INCREMENT in statement 
[CREATE TABLE T_worker (workerId INT NOT NULL AUTO_INCREMENT]
org.keel.services.persist.PersistenceException: Unable to build/execute 
create statement 'CREATE TABLE T_worker (workerId INT NOT NULL 
AUTO_INCREMENT PRIMARY KEY, entrance DATE, ident VARCHAR(20) not null, 
personId INTEGER not null)' for table 'T_worker'Unexpected token: 
AUTO_INCREMENT in statement [CREATE TABLE T_worker (workerId INT NOT 
NULL AUTO_INCREMENT]
    at 
org.keel.services.persist.defaultpersist.DefaultPersistentFactory.createTables(DefaultPersistentFactory.java:211)


May I ask you some snippets from your system.xconf, keel.properties and 
from your meta-data.

Pierre


Gene a écrit :

> I use it successfully with svc-persist-default and mysql, but don't 
> know about hsqlDB.  All that confirms is that the xdoclet tags are 
> being generated properly.
>
> hth
> gene
>
> Raoul Pierre wrote:
>
>> Hello,
>>
>> Can we use
>>
>>     *  auto-increment="identity"
>>
>> in a @persist.field meta data with svc-persist-default and hsqlDB?
>>
>> Pierre
>>
>>
>>
>>
>> http://keelframework.org/documentation.shtml
>> Keelgroup mailing list
>> [email protected]
>> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
>>
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
>
>
>




http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.