Thanks for looking into this - seems like a bug to me too. I'll go ahead and
open a JIRA for this issue - or if you have a JIRA account please go ahead
and do so.

I don't know how to set up Firebird, so I'll be relying on you (or others
with Firebird experience) to test the change, but it looks fairly trivial to
me.

Regards,
-mike

On Fri, Sep 10, 2010 at 9:08 AM, Diego Cattelan <[email protected]> wrote:

>
> 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