« Return to Thread: UserType and tiny blob

UserType and tiny blob

by olivier FRESSE :: Rate this Message:

Reply to Author | View in Thread

Hi,
I have a domain object defined as follow :

class Question {

    String name
    String description
    LinkedHashMap<String,AbstractParameter> params = new LinkedHashMap<String,AbstractParameter>(20)




    static embedded = ['params']

    static mapping = { params type: LinkedHashMapUserType }

    static constraints={
        params(maxSize:1048567)
    }

 
}


To store the "params" attribute, I have my own hibernate  UserType.

By setting the maxSize constraint, I expect the blob size of the "params" column  to be Medium, but it remains Tiny...

So does the constraint mechanism drives the blob size in this case  ?

Regards,

Olivier.


 « Return to Thread: UserType and tiny blob

LightInTheBox - Buy quality products at wholesale price