I am using the code is working for Derby, MySQL, Oracle but it's throwing error while using with PostgreSQL I'm getting error org.hibernet.exception.DataException could not execute the query.
I'm getting a solution to map text with String. But nowhere solution is for map text with Clob in domain class.
class Ticket {
String id
String name
String customerId
int severity
Clob description
String component
Clob screenshot
static mapping = {
version false
table 'MY_TICKET'
id generator: 'assigned'
columns {
id column: 'TICKET_ID'
customerId column: 'CUSTOMER_ID'
}
}
static constraints = {
id bindable: true
}
}