gorm-mongodb

    0热度

    1回答

    我的项目建立的MongoDB集合是建立在GMONGO框架,所有的结构域具有属性ID作为string.So大盘框架的工作将建立的MongoDB的集合与_id属性,当应用程序是创建。 在用户界面中有一个限制来检索_id.So在服务中,“_id”被重写为“id”来解决问题。 默认情况下我们是否可以创建带有“id”的集合而不是“_id”?

    0热度

    1回答

    我将我的grails项目从2.4.4迁移到3.2.0。所以我也将我的gorm-mongodb插件迁移到6.0.0。以前版本的mongo i 2.4.12和当前版本是3.2.7。 当我将mongo版本从2.4.12迁移到3.2.7时,在我的域类中发生异常。 我有两个领域类: class ABC implements Comparable, Serializable, Validateable {

    1热度

    1回答

    我正在将一个相当大的应用程序升级到mongodb:5.0.1.RELEASE来自mongodb:3.0.2,并且在尝试grails package时收到以下异常 Caused by: java.lang.NoClassDefFoundError: org/grails/compiler/gorm/GormEntityTransformation at org.codehaus.groov

    0热度

    1回答

    我正在用grails 3和mongo构建一个REST api。当我需要编组更深的对象图时,遇到了一个问题。 我有以下结构域: class Category extends Resource { /* other fields */ Category parent } class Product extends Resource { /* other field

    0热度

    1回答

    --- grails: mongodb: host: "localhost" port: 27017 databaseName: "dbName" username: "user" password: "encryptedPassword" --- 如何解密密码是用来做连接的MongoDB之前加密的密码?原因是我不需要在

    20热度

    2回答

    我正在使用Criteria和预测来获取我的帐户域上的标签列表。就像这样: def tags = Account.createCriteria().list { projections { property("tags") } } 我的帐户域: class Account { static mapWith = "mongo" List<Tag> tags

    0热度

    3回答

    我从头开始创建应用程序,当我启动应用程序时,出现以下错误。我的MongoDB的版本是2.6.1 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongo': Invocation of init method failed; nested exce

    0热度

    1回答

    在我的Grails 3.2.6应用程序我有2类: abstract class Base { static mapping = { tablePerHierarchy false } } 和 class Child extends Base { static mapping = { collection 'child' } }

    0热度

    1回答

    我有这样两个简单的领域类: class Isa95EquipmentSpecification { String equipmentClass String equipment String description Float quantity String quantityUOM List<Isa95EquipmentSpecific

    0热度

    1回答

    我正在使用grails 2.4.4。当我将mongodb插件从3.0.1升级到最新的3.0.2时,它无法找到并安装一个jar。它的投掷: | Error Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails:grails-datastore-gorm-plugin-suppor