Package org.springframework.data.rest.webmvc.mongodb

Examples of org.springframework.data.rest.webmvc.mongodb.Address


    PersistentEntities entities = new PersistentEntities(Arrays.asList(context));

    this.handler = new JsonPatchHandler(new ObjectMapper(), new DomainObjectReader(entities, mappings));

    Address address = new Address();
    address.street = "Foo";
    address.zipCode = "Bar";

    this.user = new User();
    this.user.firstname = "Oliver";
View Full Code Here


   */
  @Test
  public void serializesEmbeddedReferencesCorrectly() throws Exception {

    User user = new User();
    user.address = new Address();
    user.address.street = "Street";

    PersistentEntityResource userResource = PersistentEntityResource.//
        build(user, repositories.getPersistentEntity(User.class)).//
        withLink(new Link("/users/1")).//
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.webmvc.mongodb.Address

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.