Mapping Documents to POJOs with the MongoDB Java Driver | Twitch Live Coding

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024
  • Developer Advocates Maxime Beugnet and Nic Raboy show you how to automatically map MongoDB documents to Plain Old Java Objects (POJOs) using only the MongoDB driver.
    Want to get started with the MongoDB Java Driver? Check out Max's Quick Start Guide on Mapping POJOs: www.mongodb.co...
    Let us know - what do you want to learn next?

ความคิดเห็น • 10

  • @soyivancornejo
    @soyivancornejo 4 ปีที่แล้ว

    I am looking for some additional configuration example that will allow me to register in the database all the attributes of a POJO, even if a value is null, is it possible that they can help me with that?

  • @mehmetyildiz516
    @mehmetyildiz516 4 ปีที่แล้ว

    Thank you Maxime and Nic. I have one question. MongoClient mongoClient = MongoClients.create(connectionString) line is confusing. Is it Interface from mongodb.client package or class from mongodb package? It looks like Interface, however, in interface, getDatabase method accepts String var1 while here we see databaseName..?!. Can you please just say a few word about this? Naming convention is so similar and it confuses when switch to a newer version.

    • @irfanbozkurt9194
      @irfanbozkurt9194 2 ปีที่แล้ว

      you can just autowire your mongoclient if you're using spring

  • @ShirleySegre
    @ShirleySegre 2 ปีที่แล้ว

    Great video, it helped me a lot! thanks!

  • @mk42948
    @mk42948 2 ปีที่แล้ว

    Hi, could you tell please how to keep the order of fields?

  • @wpatyune1631
    @wpatyune1631 4 ปีที่แล้ว

    Is any practical tutorial to interact the query dynamically to output data other than input manually and print to the console? I hope the community could create something like "How to" section to teach practical on MongoDb, many thanks!

  • @Aloksingh-yt2lg
    @Aloksingh-yt2lg 4 ปีที่แล้ว

    You are the saviour 🙏

  • @brunosteffen8173
    @brunosteffen8173 4 ปีที่แล้ว

    Damn nic really made it hard to watch lol

  • @yueyu6244
    @yueyu6244 4 ปีที่แล้ว

    It's pretty useless. You can skip it if you are looking for the design of POJO and the implementation of MongoDB.