简体   繁体   English

Grails中没有SQL数据库的域类GORM方法

[英]Domain class GORM methods for no sql database in grails

Being new to grails, Just wanted to understand, take inputs about domain classess. 对Grails来说是新手,只是想了解一下,接受有关域类的信息。 Can these be used to map to nosql databases. 这些可用于映射到nosql数据库。 And methods like save, update, delete be overridden to execute specific queries. 诸如保存,更新,删除之类的方法将被覆盖以执行特定的查询。

Thanks 谢谢

Yes, you can. 是的你可以。 Please look at plugin http://grails.org/plugin/mongodb for example. 请查看插件http://grails.org/plugin/mongodb例如。

not only mongo is provided via GORM. 不仅mongo是通过GORM提供的。 Thanks to the recent refactoring of the GORM plugin, it's now possible to wire-in pretty much any database out there. 由于最近对GORM插件进行了重构,现在几乎可以将任何数据库都连接到那里了。 check the GitHub out and see what plugins are available now. 查看GitHub ,看看现在有哪些可用的插件。

CRUD operations shall be by default provided by any of GORM implementations. 默认情况下,任何GORM实施都应提供CRUD操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM