FAQ

Search Discussions

143 discussions - 575 posts

  • Hello, I've just came across this nice project when searching for information on how different mapping solutions deal with polymorphism. Jongo docs mentions: "To handle polymorphism of Java objects, ...
    Zsolt KútiZsolt Kúti
    Apr 25, 2014 at 11:52 am
    Apr 27, 2014 at 6:58 pm
  • Since using Version 1.0 and save my pojo MyPojo: public class MyPojo implements Serializable { @JsonProperty("_id") private MyID id; ... } public class MyID implements Serializable { private Date ...
    Ultimate FighterUltimate Fighter
    Apr 25, 2014 at 9:39 am
    Apr 25, 2014 at 9:39 am
  • I am interested in Jongo for its cleaner and more pleasant Query API for more advanced queries than what I show here. I am not using it as an ORM but rather a Map getter. However, when I use it to do ...
    John FergusonJohn Ferguson
    Apr 9, 2014 at 1:20 pm
    Apr 9, 2014 at 2:25 pm
  • Hi, I use this library <https://github.com/alexanderjarvis/play-jongo , and i've got an issue with Jongo, i try to get user by email like that : public static User findByEmail(String email) { return ...
    Mathlef0uMathlef0u
    Mar 25, 2014 at 7:25 pm
    Mar 27, 2014 at 8:50 am
  • Hi guys, I'm using mongodb 2.4.8 and Jongo 0.4 I've noticed a bizarre situation: Thread 1: Querying object X locking Querying object X from db again updating object X and storing to db releasing lock ...
    Nir AvneryNir Avnery
    Mar 16, 2014 at 3:57 pm
    Mar 20, 2014 at 2:57 pm
  • I notice the Jongo 1.1 line is using Jackson 2.3. Is there any known reason why this wouldn't work with 1.0? The reason I ask is that I am interested in using their new JsonPointer support for the ...
    Bob TiernayBob Tiernay
    Mar 7, 2014 at 12:13 am
    Mar 7, 2014 at 6:55 am
  • After a bit of a hiatus, I'm back to playing with Jongo. I've been considering adding some JavaDoc and submitting pull requests, but I see 3 long-time pending PRs and I'm hesitant to submit new ones ...
    Ted M. YoungTed M. Young
    Feb 10, 2014 at 10:35 pm
    Feb 14, 2014 at 8:23 pm
  • Hi I have created a real time java code compiler at http://www.guru99.com/try-java-editor.html Although I have checked all security aspects … do you experts see any major flaw that I need to care of? ...
    MEhak PatelMEhak Patel
    Feb 10, 2014 at 10:46 am
    Feb 10, 2014 at 10:46 am
  • Hello, after calling final Iterable<? it = f.as(ParticipantImpl.class); we get an Iterable which is actually a MongoIterator. The implementation of iterator() returns always the same instance, so if ...
    Guillaume DelafosseGuillaume Delafosse
    Feb 5, 2014 at 10:45 am
    Feb 5, 2014 at 2:59 pm
  • Jongo is very appealing to me, because you're using the mongo query language directly, instead of learning yet another API that wraps DBObjects and other constructs. I'd like to use this in Scala, ...
    ScalaJongoScalaJongo
    Feb 4, 2014 at 6:50 pm
    Feb 5, 2014 at 2:24 pm
  • Hello, What is the the solution to remove a object from a array with Jongo? I tried without success this solution : My object : contact: { "_id": "454a5s4ss55", phones: [ { number: "+0621212120", ...
    Michel vazMichel vaz
    Feb 4, 2014 at 1:20 pm
    Feb 4, 2014 at 5:20 pm
  • Greetings, I am attempting to use the distinct() method to pull a distinct list of email addresses based on specific document conditions. I am following the pattern for composing the query directly ...
    Mike ChandlerMike Chandler
    Jan 19, 2014 at 9:07 pm
    Jan 22, 2014 at 6:20 pm
  • With every unique request to MongoDB leveraging the Jongo API, I'm finding that I'm making a new connection to the database, per the console: Fri Jan 17 08:06:34.862 [initandlisten] connection ...
    Mike ChandlerMike Chandler
    Jan 17, 2014 at 4:28 pm
    Jan 20, 2014 at 4:33 pm
  • I have had immediate success with small queries using Jongo but I am currently stumped on an issue. I have code that is dynamically building a query as follows: String myQuery = "{division: 'south', ...
    Mike ChandlerMike Chandler
    Jan 15, 2014 at 12:51 am
    Jan 15, 2014 at 4:23 pm
  • Hi, Firstly, great project! I'm having trouble with using update on a polymorphic map. The object saves correctly ("context" in sample below): { "name" : "Test Workflow", "node" ...
    Jason CrossleyJason Crossley
    Jan 6, 2014 at 4:51 pm
    Jan 23, 2014 at 9:58 am
  • Hi, I've seen this option in MongoDB driver and was wondering if it is safe to enable with Jongo: http://api.mongodb.org/java/2.11.2/com/mongodb/MongoClientOptions.html#isCursorFinalizerEnabled() ...
    Boris GranveaudBoris Granveaud
    Dec 27, 2013 at 10:47 am
    Jan 25, 2014 at 11:12 am
  • in ReflectiveObjectIdUpdater.java updateField method private void updateField(Object target, ObjectId id, Field field) { try { if (field.getType().equals(ObjectId.class)) { ...
    伟薛伟薛
    Dec 25, 2013 at 3:07 am
    Dec 26, 2013 at 9:05 am
  • Hi, is it possible to get the Data via rest without _id. I always get _id, also with the anotation @JsonProperty. What I can do, to solve the problem. import ...
    Buder AlexanderBuder Alexander
    Dec 19, 2013 at 1:14 pm
    Dec 19, 2013 at 1:29 pm
  • I'm trying to use Jongo 1.0 in conjunction with spring-data-mongodb-1.3.2.RELEASE - this is because spring-data provides most of the simple queries I need, but I wanted some more complex queries ...
    Amir KibbarAmir Kibbar
    Dec 17, 2013 at 2:43 pm
    Dec 17, 2013 at 4:25 pm
  • I used jongo 0.4 to save objects to mongodb (2.11), but I cannot read some object back. Below is the exception: Exception in thread "main" org.jongo.marshall.MarshallingException: Unable to ...
    Thanapon NorasetThanapon Noraset
    Dec 7, 2013 at 9:33 pm
    Dec 17, 2013 at 4:27 pm
  • You've been waiting for it — sorry we're a little late — here is the brand new 1.0 release! It's fully packed with features & tweaks, especially bson support for query which greatly improves ...
    Benoît GUEROUTBenoît GUEROUT
    Dec 6, 2013 at 3:18 pm
    Dec 6, 2013 at 3:23 pm
  • Hi, I'm trying to use jongo.insert() to insert an array of documents but get java.lang.IllegalArgumentException: BasicBSONList can only work with numeric keys, not: [_id] when I try. The jongo site ...
    Dan VargaDan Varga
    Dec 5, 2013 at 3:56 pm
    Dec 5, 2013 at 5:22 pm
  • By default Jongo saves enums as String. I think it's waste of space - I can use Integer or even Bytes to store enums. How can I provide custom ID for enum to correctly store/retrieve it? -- You ...
    Федор БеловФедор Белов
    Dec 4, 2013 at 9:01 pm
    Dec 9, 2013 at 5:21 pm
  • Hello... I use jongo query templating a lot. It's awesome. But I've got one problem - some of my queries depends on diffrent conditions, so it may have different number of params. What's the best way ...
    Федор БеловФедор Белов
    Dec 3, 2013 at 9:51 pm
    Dec 6, 2013 at 4:17 pm
  • On the home page, under Configuring Jongo Mapper: Features on/off Default JacksonMapper.Builder() comes with a set of predefined ...
    Ted M. YoungTed M. Young
    Nov 26, 2013 at 11:48 pm
    Dec 19, 2013 at 7:40 pm
  • Hi thanks for creating this great library! I was wondering if it is possible to do the (un)marshalling of the id property of a document based on an interface. Eg for the following interface: public ...
    Christian SindbergChristian Sindberg
    Nov 24, 2013 at 8:39 pm
    Nov 30, 2013 at 8:05 pm
  • Hello, "save" method of MongoCollection returns a WriteResult. Is there a way to get ObjectId generated for the new object ? Thanks, -- You received this message because you are subscribed to the ...
    Ignasi LópezIgnasi López
    Nov 18, 2013 at 8:10 pm
    Nov 18, 2013 at 9:26 pm
  • How I can get the difference between two datetimes and get the records longer than 20 seconds. the field defined DATE. is sql query example select * from services where ...
    LughLugh
    Oct 26, 2013 at 2:15 pm
    Oct 27, 2013 at 9:21 am
  • I want to propose an interface whereby the class for deserialization can be set when the MongoCollection is first created. For many applications, the POJO class and collection name are related ...
    Tim OlsonTim Olson
    Oct 25, 2013 at 7:03 pm
    Oct 25, 2013 at 7:08 pm
  • Hi, I use Jongo in a web application. Most the time I use find, update and insert and save. Now I have to implement aggregation functionality using the map reduce approach. In the underlaying MongoDB ...
    Andreas BaumannAndreas Baumann
    Oct 15, 2013 at 12:34 pm
    Oct 17, 2013 at 6:25 am
  • Hi, is there a rough ETA for the 0.5 release? Thanx && cheers, Martin -- You received this message because you are subscribed to the Google Groups "Jongo" group. To unsubscribe from this group and ...
    Martin GrotzkeMartin Grotzke
    Oct 15, 2013 at 8:35 am
    Nov 21, 2013 at 9:15 am
  • I want to get single field "_id" which is a string in MongoDB documentation in the find will sebe use. db.Service.find({ }, { "_id" : 1 }).limit(50); my query is Iterable<Service s = ...
    LughLugh
    Oct 7, 2013 at 9:54 am
    Oct 18, 2013 at 11:35 am
  • Hello, update and delete SQL return the registration number affected. In Jongo not find that it returns "update" when the modification was done correctly. Version Jongo 0.4 Version Mongo 2.4.6 ...
    LughLugh
    Oct 2, 2013 at 10:42 am
    Oct 7, 2013 at 9:39 am
  • Hi, I have a mongo collection that holds blog posts. Each post can have comments. Comments are stored as subdocuments. My collection looks like that : { ... I want to query my collection to find a ...
    Nicolas Delaforge - MnemotixNicolas Delaforge - Mnemotix
    Sep 24, 2013 at 10:46 am
    Sep 25, 2013 at 6:45 pm
  • Hi, I'm testing the latest 0.5 preview version (jongo-0.5-early-20130912-1506) and I have a NPE if I use projection(null) which didn't happen before. Is it possible to fix this? ...
    Boris GranveaudBoris Granveaud
    Sep 16, 2013 at 3:11 pm
    Sep 18, 2013 at 10:52 am
  • Hi Everyone, I find myself rewriting basic queries for every model I write. So I wrote this little class to help remove the boiler plate. https://github.com/mnrasul/jongo-dao Now you just need to ...
    Nasir RasulNasir Rasul
    Sep 13, 2013 at 1:59 am
    Sep 13, 2013 at 1:59 am
  • Hi Everyone, I have another question. I would like to be able to control field names in a document. For instance suppose, I have a class Person with attributes, firstName, lastName and in the ...
    Nasir RasulNasir Rasul
    Sep 10, 2013 at 10:52 pm
    Sep 11, 2013 at 1:26 pm
  • Hi, is reference between documents on same db supported ? public class Client { @ObjectId @Id private String id; private Person person; } public class Person { @ObjectId @Id private String id; } I ...
    Claudio MirandaClaudio Miranda
    Sep 10, 2013 at 2:22 am
    Sep 11, 2013 at 6:18 pm
  • Hi, I am wondering if this usecase is possible with Jongo. I want to render 2 different types of reponses. Either HTML or JSON. For HTML, it is pretty clear from documentation how to achieve this ...
    Nasir RasulNasir Rasul
    Sep 7, 2013 at 7:27 pm
    Feb 19, 2014 at 8:47 am
  • Hi, I am getting un-marshall exception while trying to Un-Marshal to Company Object public class Company{ //private String name; public Company(){} @ObjectId @Id private String id; private String ...
    Aditya RathiAditya Rathi
    Aug 30, 2013 at 1:12 pm
    Aug 30, 2013 at 2:09 pm
  • As title, if I would like to do... List<DBObject objects = ...; coll.insert(objects); How does it transfer to Jongo syntax -- You received this message because you are subscribed to the Google Groups ...
    Guang Yan ZhengGuang Yan Zheng
    Aug 29, 2013 at 2:58 am
    Sep 3, 2013 at 1:43 pm
  • Hi I referred to the documentation at http://jongo.org/ and this kind of thing didn't work in find() List<String ages = Lists.new ArrayList(22, 63); However, it seems you have to use BasicDBList list ...
    AKAK
    Aug 23, 2013 at 11:49 am
    Aug 23, 2013 at 1:31 pm
  • I upgraded to latest version of jackson which required me to upgrade to bson4jackson 2.2. However, Jongo now throws following error when marshalling: Caused by: java.lang.ClassCastException ...
    PaulsideleauPaulsideleau
    Aug 18, 2013 at 5:42 am
    Aug 23, 2013 at 9:53 am
  • I would like to use a connection pool to improve performance, I want to use threads in Java with a different connection for each, please. Thanks -- You received this message because you are ...
    Fate12346Fate12346
    Aug 1, 2013 at 3:20 pm
    Aug 23, 2013 at 10:03 am
  • hi, i'd like update my document with this update request who use an _id but that's not work. String str = "{$addToSet : {'list' : {'id' :" + "\"" + itemId.get(i)+ "\"" + ",'value' : 100554 }} }" ...
    Fate12346Fate12346
    Aug 1, 2013 at 10:29 am
    Aug 1, 2013 at 3:50 pm
  • hi, I download version 0.5 on jongo https://github.com/bguerout/jongo in zip format but when I add it to build path minutes I get errors, you do not have a jar for the last version please? -- You ...
    Fate12346Fate12346
    Jul 25, 2013 at 6:36 pm
    Jul 26, 2013 at 8:07 am
  • Bonjour, je souhaite utiliser la méthode update avec l'option upsert mais quand j'effectue une boucle il n'apparaît alors qu'un seul document : voici mon code java String query = "{'advertiser':'" ...
    Fate12346Fate12346
    Jul 25, 2013 at 4:02 pm
    Jul 26, 2013 at 8:22 am
  • Bonjour, Je souhaite persister un objet java en base et celui-ci contient une arraylist<Product , l'objet Product contient deux attribut. Je veux appliquer un $set sur le premier de type String et ...
    Fate12346Fate12346
    Jul 25, 2013 at 12:21 pm
    Jul 25, 2013 at 2:01 pm
  • Bonjour, J'ai crée une classe qui contient un arraylist que je remplis. Puis je persiste mon objet dans mongo avec ce code DB db = new Mongo("localhost" , 27017 ).getDB("test"); Jongo jongo = new ...
    Fate12346Fate12346
    Jul 25, 2013 at 12:17 pm
    Jul 26, 2013 at 8:28 am
  • Hi I just spotted the following bug in the polymorphism with Jongo. I am not sure if it inherited from Jackson. I relied on the PolymorphismTest class I added two instances with the same name Animal ...
    CharbelKCharbelK
    Jul 25, 2013 at 10:56 am
    Jul 31, 2013 at 7:59 am
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupjongo-user @
categoriesmongodb
discussions143
posts575
users87
websitejongo.org
irc#mongodb

Top users

Benoît GUEROUT: 154 posts Yves amsellem: 68 posts David: 20 posts Lugh: 18 posts Shiva mncl: 16 posts Nasir Rasul: 14 posts Boris Granveaud: 13 posts Fate12346: 13 posts Omosigho Ozo-Eson: 12 posts Ryan Shelley: 11 posts Guang Yan Zheng: 10 posts SirenZSL: 10 posts Christian Sindberg: 9 posts BenCo: 9 posts srinivasa Rao Munagala: 8 posts Björn Ekengren: 8 posts Claudio Miranda: 8 posts Chen56: 7 posts Daniel Spangler: 7 posts Bitsofinfo: 6 posts
show more