grails - Conversion: datetime to time -


i working on legacy database in there table having time data type in grails when define field of type date generates field of type datetime, there way give instruction in domain generate corresponding column of type time?

you can use mapping , sqltype

class myclass {     date mydate     static mapping = {         mydate sqltype: "time"     } } 

further info here