Mark Johnson
04/01/2024, 1:47 PMstatic mapping = {
id generator: 'uuid.hex'
}
I seem to get this error:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception; nested exception is org.grails.datastore.mapping.model.DatastoreConfigurationException: Invalid id generation strategy for entity [com.k_int.ciim.mgmt.provider.Provider]: uuid.hex
on startuptylervz
04/01/2024, 3:55 PMMark Johnson
04/02/2024, 8:15 AMMark Johnson
04/02/2024, 8:17 AMString id = UUID.randomUUID().toString()
static mapping = {
id generator: 'assigned'
}mattias_reichel
04/02/2024, 8:06 PMclass Book {
String id
Sting name
static mapping = {
id generator: 'org.hibernate.id.UUIDHexGenerator'
}
}mattias_reichel
04/02/2024, 8:12 PMclass Book {
String id
Sting name
static mapping = {
id generator: 'uuid'
}
}mattias_reichel
04/02/2024, 8:18 PMimport java.util.UUID
class Book {
UUID id
Sting name
static mapping = {
id generator: 'uuid2'
}
}Mark Johnson
04/02/2024, 9:01 PMmattias_reichel
04/02/2024, 9:25 PM