ektorp

Can someone explain me Cascading and FetchType lazy in Ektorp?

▼魔方 西西 提交于 2020-01-04 03:02:08
问题 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 want to save a very complex class as a document (I have managed that so far), but I do not want to load all the fields all the time (since some of those are potentially big collections of other simpler documents). Here is an example of what I have

How to connect CouchDB with Java

て烟熏妆下的殇ゞ 提交于 2019-12-25 07:02:31
问题 I'm new about NOSQL. I use couchDB and ektrop Java API. I tried these code but it gives HTTP 405 error. protected CouchDbInstance _db; { String dbname = "my_database"; try { //creates a database with the specified name CouchDbConnector dbc = _db.createConnector(dbname, true); //create a simple doc to place into your new database Map<String, Object> doc = new HashMap<String, Object>(); doc.put("_id", UUID.randomUUID().toString()); doc.put("season", "summer"); doc.put("climate", "arid"); dbc

How to connect CouchDB with Java

时光怂恿深爱的人放手 提交于 2019-12-25 07:02:05
问题 I'm new about NOSQL. I use couchDB and ektrop Java API. I tried these code but it gives HTTP 405 error. protected CouchDbInstance _db; { String dbname = "my_database"; try { //creates a database with the specified name CouchDbConnector dbc = _db.createConnector(dbname, true); //create a simple doc to place into your new database Map<String, Object> doc = new HashMap<String, Object>(); doc.put("_id", UUID.randomUUID().toString()); doc.put("season", "summer"); doc.put("climate", "arid"); dbc

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

二次信任 提交于 2019-12-10 18:12:33
问题 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 I came up with this solution: I create a show function that delete fields from an object and then send it back. function(doc, req) { var result = doc; var ignore = JSON.parse(decodeURIComponent(req.query.ignore)); //this is an array of field names