Removed the sqlType: Longblog  and add constraint on data: maxSize: 5000000 (~4.6MB), this will allow hibernate to select the column sql type depending on the driver used.