Questions tagged [reactive-mongo-java]

34 questions
0
votes
1 answer

What is the order of saving objects of a Model class?

I have an POJO class for a JSON as follows: public class Portcall { private Long id; . . PreviousPortCall previousPortCall; NextPortCall nextPortCall; . } Here all the 3 classes-PortCall, PreviousPortCall, NextPortCall are…
Puneet
  • 31
  • 5
0
votes
1 answer

Change MongoDb ObjectId _id to string in Micronaut using java

I have below Pojo class for the mongo entity public class Product { @BsonProperty("_id") @BsonId private ObjectId id; private String name; private float price; private String description; } when I fetch the mongo result as…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
-1
votes
1 answer

Cannot convert from Flux to Mono

public Flux updateByFindById(String gsisKey, PortCall portCall) { return portCallRepository.findAllByVesselCode(portCall.getVesselCode()) .collectList().flatMap(list->{ return…
Puneet
  • 13
  • 1
  • 6
-3
votes
2 answers

Unable to convert date with UTC using Joda Time API

I'm trying to convert this date into local date Input: "2021-04-20T15:00:00+02:00"; Expected output: "2021-04-20T13:00:00Z"; Actual output : "2021-04-20T15:00:00 Can you please let me know which library to use? Code: String date =…
Puneet
  • 13
  • 1
  • 6
1 2
3