gorm - Issues with GRAILS UUID and PSQL -


i trying use uuid2 generator on grails 2.4.4, psql version 9.4.4. current model setup is.

class classa {     uuid id     static mapping = {        id generator:'uuid2', name:'uuid2', type:'pg-uuid'        tableperhierarchy false    } } 

and

class classb extends classa {      static constraints = {     }      static mapping = {     } } 

but when perform run-app error.

error context.grailscontextloaderlistener - error initializing application: error evaluating orm mappings block domain [classb]: null message: error evaluating orm mappings block domain [classb]: null

any ideas did wrong?

rename uuid id uuid uuid2 or remove name: uuid2. far know name in mapping assign id generator 1 of properties.

enter link description here


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -