Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2 final
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 9.10, Oracle 10g
Description
I am currently seeing a problem with custom sequence mappings in GORM. They appear to just be ignored - not created in schema-export (except default hibernate_sequence and as far as I can see Grails just ignores them and uses the hibernate one (at least it is consistent).
I'm not sure if this is a GORM thing or Hibernate thing, but haven't seen any other posts on it. As far as I can see the problem does not appear on Grails 1.1, haven't tried it on any other databases... I'll try Mysql later.
Here is my current Mapping code in Config.groovy:
grails.gorm.default.mapping = { id generator: 'native' }
(also tried sequence 'sequence' with same result)
and on each domain class something like this:
id column: 'REPOSITORY_ID', params:[sequence:'SEQ_TEIMR_REPOSITORY']
Just tried Mysql - forget that idea, I just realised Mysql doesn't have named sequences. What else has them? Postgres?