views:

122

answers:

2

How do I use mysql's compress() and uncompress() functions to compress text before I store it and uncompress it when I retrieve it using a mysql database with hibernate for ORM?

+1  A: 

hmm native queries? But i dont have to tell you that your application will depend on a mysql rdbms then ;)

smeg4brains
A: 

A workaround would be to use stored procedures instead of queries. Stored procedures supported by hibernate. That's likely to get unwieldy, though.

eykanal