File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
main/java/org/mapfish/print/servlet/job/impl/hibernate
test/resources/org/mapfish/print/servlet Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11package org .mapfish .print .servlet .job .impl .hibernate ;
22
33import java .net .URI ;
4+ import javax .persistence .Basic ;
45import javax .persistence .Column ;
56import javax .persistence .Entity ;
6- import javax .persistence .Lob ;
77import org .mapfish .print .servlet .job .impl .PrintJobResultImpl ;
88
99/** Extension of Print Job Result that holds data as BLOB. */
1010@ Entity
1111public class PrintJobResultExtImpl extends PrintJobResultImpl {
1212
13- @ Column @ Lob private byte [] data ;
13+ @ Column (length = 1000000000 )
14+ @ Basic
15+ private byte [] data ;
1416
1517 /** Default Constructor. */
1618 public PrintJobResultExtImpl () {
Original file line number Diff line number Diff line change 55
66 <bean id =" mfDataSource" class =" org.springframework.jdbc.datasource.DriverManagerDataSource" >
77 <property name =" driverClassName" value =" org.h2.Driver" />
8- <property name =" url" value =" jdbc:h2:mem:dbtest;DB_CLOSE_DELAY=-1" />
8+ <property name =" url" value =" jdbc:h2:mem:dbtest;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;INIT=CREATE DOMAIN IF NOT EXISTS JSONB AS JSON; " />
99 <property name =" username" value =" jobs" />
1010 <property name =" password" value =" jobs" />
1111 </bean >
You can’t perform that action at this time.
0 commit comments