Показаны сообщения с ярлыком mongodb. Показать все сообщения
Показаны сообщения с ярлыком mongodb. Показать все сообщения

суббота, 9 апреля 2016 г.

SQL and MongoDB

It has been a long time since I had used MongoDB. In the meantime I am very interested in the possibility to use plain SQL when working with MongoDB.

At first my toolbelt has the https://robomongo.org/ tool. This tool allow to ease the work with Mongo console. How can use SQL? That's the main question. There is a project Apache Drill which allows you to connect to MongoDB, Hadoop, Hbase, files and query with SQL. Moreover, you can use the Apache Drill jdbc driver with any tools that support JDBC!
Pretty good!

вторник, 18 сентября 2012 г.

Spring + MongoDB + Eclipse. Проблема с spring-mongo-1.0.xsd.


При использовани Spring + Mongo в Eclipse последний ругается на файл с бинами Spring.

<beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:context="http://www.springframework.org/schema/context"
          xmlns:mongo="http://www.springframework.org/schema/data/mongo"
          xsi:schemaLocation=
          "http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
          http://www.springframework.org/schema/data/mongo
          http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd
          http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

Детальная ошибка говорит: "Cannot resolve the name 'repository:repository' to a(n) 'type definition' component" вspring-mongo-1.0.xsd.

Решение нашёл в замечательной заметке: http://stackoverflow.com/questions/11684673/spring-mongo-1-0-xsd-error.

Нужно изменить   http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd на
  http://www.springframework.org/schema/data/mongo/spring-mongo-1.1.xsd. После этого eclipse перестанет ругаться на проект.

воскресенье, 9 сентября 2012 г.

Spring + MongoDb. Первое знакомство.

В одном из моих проектов мне понадобилось использовать mongodb в качестве хранилища данных сессии пользователя.

Для работы на java с mongodb можно использовать java драйвер. Это довольно утомительное занятие. Поэтому я нашёл интересный проект spring-data-mongodb, который позволяет упростить работу с mongodb.