You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Grails8 Hibernate7] Mapping a property to "type: 'text'" throws a CommandAcceptanceException #16010
Our app should launch without exception, even if database DDL are executed.
Actual Behaviour
An exception is thrown:
WARN 78010 --- [ main] o.h.t.s.i.ExceptionHandlerLoggedImpl : GenerationTarget encountered exception accepting command : Error executing DDL "
alter table if exists application_message
alter column body set data type varchar(32600)" via JDBC [ERROR: value too long for type character varying(32600)]
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "
alter table if exists application_message
alter column body set data type varchar(32600)" via JDBC [ERROR: value too long for type character varying(32600)]
Steps To Reproduce
Create a domain class with a mapping:
@GrailsCompileStaticclassApplicationMessage {
String body
static constraints = {
}
static mapping = {
body type: 'text'
}
}
Use bootRun task, it should fail at startup with a similar message than above.
Environment Information
❯ psql -V
psql (PostgreSQL) 18.4
❯ uname -a
Linux auo-big-achyos 7.1.3-2-cachyos #1 SMP PREEMPT_DYNAMIC Wed, 08 Jul 2026 06:14:22 +0000 x86_64 GNU/Linux
❯ java -fullversion
openjdk full version "25.0.3"
Activity
fix(grails-data-hibernate7): make type: 'text' produce an unbounded c…