Skip to content

Could not determine type for LazyBlobType #1

cupto opened this Issue Sep 23, 2013 · 1 comment

2 participants

cupto commented Sep 23, 2013

In my domain class:

package test

import grails.plugin.lazylob.LazyBlob
import grails.plugin.lazylob.LazyBlobType

class FileLazylob {

    LazyBlob fileAttach
    String mimeType
    String nameFile
    double sizeFile
    String extFile

    static constraints = {
        fileAttach type: LazyBlobType, params: [propertyName: 'fileAttach']

Caused by MappingException: Could not determine type for: grails.plugin.lazylob.LazyBlob, at table: file_lazylob, for columns: [org.hibernate.mapping.Column(file_attach)]

Grails 2.1.1, Windows 7
mysql or h2 database

eogiles commented Sep 2, 2014

@cupto Presumably you figured this out but you had the "type: LazyBlobType ..." in the static constraints block. It should be in the static mapping block. You should probably close this issue.

@cupto cupto closed this Sep 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.