Search:

Type: Posts; User: albert_kam; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Hello again Oliver. Okay, i am trying to do this...

    Hello again Oliver.
    Okay, i am trying to do this right now.
    Could you help me on how to construct a MappingMongoConverter instance ?
    I still have several conversion issues, if you guide me on how...
  2. Thanks for the reply. Any pointers how should i...

    Thanks for the reply.
    Any pointers how should i get started ?
    I am asking this because i am used to do simple tests with a running mongo instance, a custom spring xml file,
    tests like the example...
  3. Hello, it's been quite a while. Is there any...

    Hello, it's been quite a while. Is there any followups on this ?
  4. Dear Oliver, Here is a working...

    Dear Oliver,

    Here is a working single-java-file example that demonstrates the problem :


    package kam.albert.lab.convert;

    import java.util.ArrayList;
    import java.util.List;
  5. empty array being mapped to hashset instead of list

    Using spring mongo 1.1.0 release version, and mongo-java-driver 2.9.1 here.

    So, i have an arraylist that gets mapped to mongo without using any converters using the default mapper.

    If the list...
  6. Converter not working when having multiple criterias in query

    Using spring mongo 1.1.0 release version, and mongo-java-driver 2.9.1 here.

    So, in short, i have an custom class IdKey that should convert to ObjectId, having registered the converter reader and...
  7. Replies
    0
    Views
    216

    Mongo - lost type after $set update

    spring-data-mongodb : 1.0.4.RELEASE

    I have this scenario with :
    1) insert a soup record + it's cinnamon spice
    2) find & modify the soup's to use a new spice instead : pepper spice
    3) load the...
  8. Replies
    3
    Views
    1,418

    Found a workaround for this

    This works :

    List<Criteria> timepointCriterias = new ArrayList<>();
    timepointCriterias.add(Criteria.where("timepoint").gt(since));
    timepointCriterias.add(Criteria.where("timepoint").lte(until));...
  9. Wooops, i found the culprit, and it was not about...

    Wooops, i found the culprit, and it was not about non-zero-constructor issues at all.

    The cause was one property of my entity (which is just one of my own made classes) has the constructor issue,...
  10. [Mongo] inheritance and multiple non-zero-argument-constructors

    I am currently doing inheritance in my mongo entity. Saving is fine, but loading it back gives me the exception of :


    Exception in thread "main" java.lang.NullPointerException
    at...
  11. Replies
    2
    Views
    654

    After looking at this solution :...

    After looking at this solution : http://forum.springsource.org/showthread.php?120050-MongoDb-multiple-pushAll
    I tried making an update subclass :



    import...
  12. Replies
    2
    Views
    654

    pushAll doesnt work with mongoMapper ?

    When i did a push, it works fine :


    update = update.push("persons", new Person("albert"));


    But when i did this :


    update = update.pushAll("persons", new Object[] {new Person("albert"),...
  13. How to know the class that triggers this exception ?

    I have countered many exceptions like this one below.

    As i understand it, it has the problem with the constructors when trying to create an object instance out mongo document.
    Sometimes i can...
  14. Hello again .. This was my original issue on...

    Hello again ..

    This was my original issue on https://jira.springsource.org/browse/DATAMONGO-407
    My bad on issueing this matter before posting it here.

    Will be very excited to see this feature...
  15. Mongo : Losing type with generics in update, becomes LinkedHashMap instead

    I have a simple case, on making a post, and then adding a comment, and then inserting them into my mongo collection :


    // create a post and add a comment
    String postId = "post1";
    MyPost...
  16. Hi again ! I think that's good news, meaning...

    Hi again !

    I think that's good news, meaning the spring and mongodb rocks and lightning fast, haha.

    :p

    Perhaps the issue is related with this :...
  17. splitting mongo custom-converters into multiple context files ?

    This is my configuration :

    <org.springframework.version>3.1.0.RELEASE</org.springframework.version>
    <spring.data.mongo.version>1.0.0.RC1</spring.data.mongo.version>


    Is it possible to...
  18. I think it's detailed in here...

    I think it's detailed in here.

    Example usage from my mongoTemplate definition :


    <property name="WriteResultChecking">
    <util:constant
    ...
  19. Replies
    2
    Views
    688

    Hi, thanks for the reply. Does this mean i must...

    Hi, thanks for the reply. Does this mean i must use http basic or digest auth, or perhaps there are other approaches? My clients would be mostly web browsers and rest clients.

    Actually i like the...
  20. Replies
    1
    Views
    741

    spring security with HMAC?

    HMAC seems to be the ideal security for a stateless webapp, storing nothing in server sessions.

    But is it possible to integrate HMAC auth with Spring Security auth ?

    I am currently using Spring...
  21. Replies
    2
    Views
    688

    create-session="stateless" usage ?

    I was hoping that changing into "stateless" for create-session attribute would be the end of it to achieve stateless spring security in my webapp, but it is not so.

    With that change, the spring...
  22. issue submitted : ...

    issue submitted :

    https://jira.springsource.org/browse/DATAMONGO-374
  23. Custom Converter not used when doing $set updates ?

    Short summaries before the simple examples :

    Inserting new documents is OK, in the meaning that it uses my custom converter
    Updating an existing document is not OK, in the meaning that it...
  24. Replies
    1
    Views
    548

    Hello, Im using maven for this, and perhaps...

    Hello,

    Im using maven for this, and perhaps this mvn dependency:tree output could help you to determine missing jars :


    [INFO] +-...
  25. I feel stupid now. Using new Update() works just...

    I feel stupid now. Using new Update() works just fine without having to do static Update.update(key, value)

    Thank you!
Results 1 to 25 of 33
Page 1 of 2 1 2