title: grails/hibernate: how to disable auto-increment on ID column?
body: <p>By default, when you create a domain object in grails, it adds the "id" column and sets it to auto-increment in the DB.</p>
  
  <p>I want to supply the id parameter when I create/save an object, not use any kind of generate (its for a small number of static pieces of data which I want the ID to be fixed to the values I give).</p>
  
  <p>There are other benefits I want, e.g. to be able to create an object in memory with the correct ID, without having to read it from the DB then make this object a "contains" type relationship with another object, if that makes sense.</p>
  
  <p>Grails has documenation for the id column, but doesnt say how to disable auto-increment and allow an ID to be passed into the domain object constructor:</p>
  
  <p><a href="http://grails.org/doc/2.1.0/ref/Database%20Mapping/id.html" rel="nofollow">http://grails.org/doc/2.1.0/ref/Database%20Mapping/id.html</a></p>