SQL/Database Views in Grails

前端 未结 3 906
野趣味
野趣味 2020-12-04 10:14

Does anybody know what is the best approach to accessing a sql view through Grails (or if this is even possible)? It seems an obvious way of doing this would be to use execu

3条回答
  •  执念已碎
    2020-12-04 10:54

    It's perfectly possible to map a domain class to a view, just treat it like a regular table. I think Grails will print some log messages about not being able to do inserts, deletes, etc. but it will not throw any errors unless you actually try to do something other than query with the domain class.

提交回复
热议问题