In unit tests with H2 and Dbunit, these use hibernate mapping files to generate the schema for the database. When a property is of type="string", the default column length that it creates is size 255, if there is no explicit length property set on the column in the mapping file.
For the order_set_member -> order_template column we generate this in our liquibase schema as type "text"
However, in the hibernate mapping file, it is not given any length, thus defaulting to 255.
The result of this is that in unit tests, not templates of length > 255 characters can be added.
We should fix this by specifying a correct length on the hibernate mapping file.