Example usage for org.springframework.data.rest.webmvc.jpa Order Order

List of usage examples for org.springframework.data.rest.webmvc.jpa Order Order

Introduction

In this page you can find the example usage for org.springframework.data.rest.webmvc.jpa Order Order.

Prototype

public Order(Person creator) 

Source Link

Usage

From source file:org.springframework.data.rest.webmvc.json.Jackson2DatatypeHelperIntegrationTests.java

@Before
public void setUp() {

    this.order = orders.save(new Order(people.save(new Person("Dave", "Matthews"))));

    // Reset JPA to make sure the query returns a result with proxy references
    em.flush();//from  w w  w .  j a va2  s  .c o  m
    em.clear();
}