Problem solved but a bug has revealed.

I was missing @SequenceGenerator annotation.

But an error revealed on FirebirdDictionary. I copied FirebirdDictionary and
modified method getSequencesSQL():

    @Override
    protected String getSequencesSQL(DBIdentifier schemaName, DBIdentifier
sequenceName) {
        StringBuilder buf = new StringBuilder(sequenceSQL);
        if (sequenceName != null)
            buf.append(sequenceNameSQL);
        return buf.toString();
    }

with 

    @Override
    protected String getSequencesSQL(DBIdentifier schemaName, DBIdentifier
sequenceName) {
        StringBuilder buf = new StringBuilder(sequenceSQL);
        if(!DBIdentifier.isNull(sequenceName)){
            buf.append(sequenceNameSQL);
        }
        return buf.toString();
    }

and now it works
-- 
View this message in context: 
http://openjpa.208410.n2.nabble.com/Problem-with-database-schema-creation-tp5515628p5518422.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to