package org.datacite.mds.web;

import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import org.datacite.mds.domain.Metadata;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

@RooWebScaffold(path = "metadatas", formBackingObject = Metadata.class, delete = false)
@RequestMapping("/metadatas")
@Controller
public class MetadataController {
}

@@ -24,16 +24,57 @@
 s.web;%0A%0A
+import org.datacite.mds.domain.Metadata;%0A
 import o
@@ -152,36 +152,155 @@
 org.
-datacite.mds.domain.Metadata
+springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.WebDataBinder;%0Aimport org.springframework.web.bind.annotation.InitBinder
 ;%0Aim
@@ -387,36 +387,65 @@
 amework.
-stereotype.Controlle
+web.multipart.support.ByteArrayMultipartFileEdito
 r;%0A%0A@Roo
@@ -603,11 +603,175 @@
 roller %7B
+%0A%0A    @InitBinder%0A    protected void initBinder(WebDataBinder binder) %7B%0A        binder.registerCustomEditor(byte%5B%5D.class, new ByteArrayMultipartFileEditor());%0A    %7D
 %0A%7D%0A

add editor for byte[]