Package org.springframework.data.rest.webmvc.jpa

Examples of org.springframework.data.rest.webmvc.jpa.LineItem


  public void serializesReferencesWithinPagedResourceCorrectly() throws Exception {

    Person creator = new Person("Dave", "Matthews");

    Order order = new Order(creator);
    order.add(new LineItem("first"));
    order.add(new LineItem("second"));

    PersistentEntityResource orderResource = PersistentEntityResource.//
        build(order, repositories.getPersistentEntity(Order.class)).//
        withLink(new Link("/orders/1")).//
        build();
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.webmvc.jpa.LineItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.