Questions tagged [ektorp]

Ektorp is a persistence API that uses CouchDB as storage engine.

Ektorp is a persistence API that uses CouchDB as storage engine. The goal of Ektorp is to combine JPA like functionality with the simplicity and flexibility that CouchDB provides.

71 questions
7
votes
1 answer

How to write custom serializer and deserializer in Jackson?

I have a class that has more than a dozen properties. For most of the properties of primitive type, I hope to use the default BeanSerializer and BeanDeserializer or whatever to reduce the cumbersome code I need to write. For other properties of…
PokerIncome.com
  • 1,708
  • 2
  • 19
  • 30
6
votes
2 answers

Retrieve the .class attribute of a generic class

I am trying to extend the following class with constructor (from the Ektorp library): public class CouchDbRepositorySupport implements GenericRepository { ... protected CouchDbRepositorySupport(Class type,…
jd.
  • 4,057
  • 7
  • 37
  • 45
4
votes
2 answers

How do I sync my Android application with Couchbase Server?

I am struggling to differentiate between all of the different couch* technologies that are out there. I've been flip-flopping between using CouchDB and using Couchbase Server for an Android game that I'm developing and the lack of documentation is…
SemperFly
  • 1,563
  • 3
  • 17
  • 31
3
votes
2 answers

Java data access to CouchDB: ORM or REST?

I'm working on an application acts as an event service bus for integrating various legacy components....The application utilizes a data store to audit all events and requests sent between systems as well as to store metadata about bus-subscribing…
wsb3383
  • 3,841
  • 12
  • 44
  • 59
3
votes
2 answers

How to get a java.util.Map from id to string prop in couchdb using ektorp

I'm having trouble dealing with what I thought would be a simple problem. Basically, I need a java.util.Map, where ids end up being the map keys, and someField of my document ends up in the values. I'm really really stuck on this,…
Gijs
  • 5,201
  • 1
  • 27
  • 42
3
votes
0 answers

Segment fault with com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer.calcHash

I am using Ektorp 1.5.0 framework and Jackson 2.11.3 to serialize couchdb documents to/from JSON in a Spring 5 web application running on Tomcat 8 and Ubuntu 14. Occasionally I get a segment fault that produces a file hs_err_pid19743.log. There…
dukethrash
  • 1,449
  • 4
  • 15
  • 25
3
votes
1 answer

How to get doc from couchdb without some fields? using Ektorp if possible

At first I misunderstood my problem and posted this question : Can someone explain me Cascading and FetchType lazy in Ektorp? What I need to do: I need to save an Entity in couchdb and then have way to read it and potentially ignore some fields. So…
le-doude
  • 3,345
  • 2
  • 25
  • 55
3
votes
1 answer

Can someone explain me Cascading and FetchType lazy in Ektorp?

I am new to CouchDB and Ektorp (I ACTUALLY started today to try to work with it). The most detailed documentation I have found to help me getting started is this one: http://www.ektorp.org/reference_documentation.html#d100e394 My use case is that I…
le-doude
  • 3,345
  • 2
  • 25
  • 55
3
votes
1 answer

Error in executing bulk Update in Cloudant CouchDB using Ektorp ExecuteBulk () and ExecuteAllOrNothing () API

I am facing an issue with Bulk Update on a list of documents in Cloudant DB (CouchDB) using Ektorp executeBulk & ExecuteAllOrNothing functions. For couchDbConnector.executeAllOrNothing(List list), I am getting error as…
Rahul Mohan
  • 101
  • 1
  • 2
  • 6
3
votes
1 answer

Eclipse run configuration that excludes jars from classpath

How can I create an Eclipe Run Configuration that exclude some jars from the classpath?! BACKGROUND EXPLANATION: I'm working on webapp that uses Embedded Jetty as Web Server, Ektorp library to fetch data from a CouchDB database, Jersey to provide…
Giorgio
  • 13,129
  • 12
  • 48
  • 75
2
votes
1 answer

How can I change the structure of all documents in a CouchDB database?

I have to change the structure of all existing documents in one of my CouchDB databases that contain a certain field. Right now, the field is just a simple String, for example: { // some other fields "parameters": { "typeId": "something", …
Renato
  • 12,940
  • 3
  • 54
  • 85
2
votes
1 answer

Kotlin mutators

I'm using Ektorp as CouchDB "ORM" but this question seems to be more general than that. Could someone explain what is the difference between @JsonInclude(NON_NULL) abstract class AbstractEntity( id: String?, revision: String? ) { …
kboom
  • 2,279
  • 3
  • 28
  • 43
2
votes
1 answer

Removing an item from an array in CouchDB

what I am trying to do is updating a document, which has this pattern: { "_id":"myObjectId", "_rev":"4-cf19d80a7315bb7fc72882839d7eccb9", "properties": { "1b5f313d044f7cd4d46f62c96e8e26d68":"9f5afece4144ab5676375335150a9776", …
Yassine Badache
  • 1,810
  • 1
  • 19
  • 38
2
votes
1 answer

How to update couchdb document without losing existing attachment

I want to update a field in couchdb document which already has an attachment. If I update new field with the current revision then the attachment gets deleted. Is there a way so that I update the field without losing the attachment? I am using…
Sunil
  • 170
  • 1
  • 3
  • 11
2
votes
0 answers

query couchdb with ektorp for range and key value

Im trying to use couchDB, ektorp to store and query data If i have documents like Sofa{ colour:red manufaturedDate: 12/8/2015 } how can i create a view and query it.. so i can answer give me all Sofas that are in a set or arbitrary colours…
darthShana
  • 367
  • 1
  • 4
  • 16
1
2 3 4 5