dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Oracle setup bug causing sequence creation errors #156

Open ahonor opened 12 years ago

ahonor commented 12 years ago

From sharadr:

From the research , it seems like the oracle sequence is disappearing when we have DDL set in update mode. It seems like a bug in hibernate/grails when connecting to oracle. It works fine in mysql etc.

The suggestion was to add to add to domain class

static mapping = { id generator:'sequence', params:[sequence:'ANY_WORD'] }

http://www.solveitproblems.net/2012/02/grails-oracle-sequence-problem-ora.html

This would need to be tested for any issues against other databases etc so we don't create regression.

ahonor commented 12 years ago

See also #145