Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Could not determine type for LazyBlobType #1

Closed
cupto opened this Issue · 1 comment

2 participants

@cupto

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']
        mimeType(nullable:false)
        nameFile(nullable:false)
        sizeFile(nullable:false)
        extFile(nullable:false)
    }
}

Error:
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

@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
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.