2010-06-04 36 views

回答

1

hmm native queries? 但我沒有告訴你,你的應用程序將取決於一個mysql rdbms然後;)

0

解決方法是使用存儲過程,而不是查詢。存儲過程supported通過休眠。不過,這可能會變得很笨重。

4

ColumnTransformer,IIRC因爲3.6:

@Column(name = "data", columnDefinition = "BLOB", nullable = false) 
@ColumnTransformer(read = "UNCOMPRESS(data)", write = "COMPRESS(?)") 
@Lob 
public byte[] getData() 
{ 
    return theData; 
} 
+0

SELECT CHAR_LENGTH(UNCOMPRESS(COMPRESS(REPEAT( 'A1',9000)))); – zloctb 2015-06-16 09:29:51