[DOCS-11367] NYU: Create Java-based sample app for find() with scalar fields Created: 27/Feb/18  Updated: 07/Apr/23  Resolved: 09/Oct/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Raghavendra Harish old Assignee: Raghavendra Harish old
Resolution: Incomplete Votes: 0
Labels: NYU
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-11482 NYU: Write step-by-step documentation... Closed
Participants:
Days since reply: 5 years, 46 weeks, 6 days ago
Epic Link: NYU Sample Apps Project

 Description   

DoD:
Create an Atlas free-tier cluster containing a stores.orders collection in it. Orders should have the following form.

{
  _id: ObjectId(),
  orderPlaced: datetime(),
  total: NumberDecimal("153.00"),
  subtotal: NumberDecimal("141.00"),
  shipping: NumberDecimal("5.00"),
  tax: NumberDecimal("7.00"),
  status: ["shipped", datetime()],
  shippingAddress: {
    number: 345,
    street: Alvin St.,
    city: Madison
    state: WI,
    country: USA
    postalCode: 53558
  },
  lineitems: [
    { sku: "MDBTS001",
      name: "Flannel T-shirt",
      quantity: 10,
      unit_price: NumberDecimal("9.00") },
    { sku: "MDBTS002",
      quantity: 5,
      unit_price: NumberDecimal("10.00")}] 
}

Write a Java sample application that queries this collection. The sample app should have four methods: one that illustrates a simple equality match, one that illustrates an equality match on two or more fields, one that illustrates a range query on order total, one that illustrates a range query by date.
Two of the methods should also make use of project.
Write unit tests for all methods plus one for connecting to the cluster.
Pull request passes code review and merged.



 Comments   
Comment by Shinyou Hwang [ 22/Mar/18 ]

rh2551 Code looks fine. Except the typo. Please fix that and will have another look

Comment by Shannon Bradshaw (Inactive) [ 21/Mar/18 ]

https://github.com/mongodb/sample-apps-nyu/pull/2

Generated at Thu Feb 08 08:02:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.