Slide 21
Slide 21 text
Translates to app model, too!
• Java, OOM language
• Entity-based mapping
• Very little change
• Neo4j/Java types nearly same
@Node
public class Order {
@Id
String orderId;
LocalDate orderDate;
LocalTime orderTime;
String inStore;
@Relationship(value = "BOUGHT",
direction = Relationship.Direction.INCOMING)
Customer customer;
[
{
"customer": {
"customerId": "1",
"customerName": "Kelly Key",
"loyaltyId": "908-424-2890"
},
"inStore": "N",
"orderDate": "2019-04-01",
"orderId": "76",
"orderTime": "07:52:17"
},
{
"customer": {
"customerId": "1",
"customerName": "Kelly Key",
"loyaltyId": "908-424-2890"
},
"inStore": "N",
"orderDate": "2019-04-01",
"orderId": "662",
"orderTime": "14:53:06"
},