class MetadataXml { // Format is bar... String namevalue static belongsTo = [rasterEntry: RasterEntry] static constraints = { namevalue() } static mapping = { cache true columns { namevalue type: 'text' , index: 'metadata_xml_namevalue_idx' } } }