Package org.infinispan.client.hotrod.protostream.domain

Examples of org.infinispan.client.hotrod.protostream.domain.Address


   @Override
   public Address readFrom(ProtobufReader reader) throws IOException {
      String street = reader.readString("street");
      String postCode = reader.readString("postCode");

      Address address = new Address();
      address.setStreet(street);
      address.setPostCode(postCode);
      return address;
   }
View Full Code Here


      user.setId(1);
      user.setName("Tom");
      user.setSurname("Cat");
      user.setGender(User.Gender.MALE);
      user.setAccountIds(Collections.singletonList(12));
      Address address = new Address();
      address.setStreet("Dark Alley");
      address.setPostCode("1234");
      user.setAddresses(Collections.singletonList(address));

      remoteCache.put(1, user);

      User fromCache = remoteCache.get(1);
View Full Code Here

TOP

Related Classes of org.infinispan.client.hotrod.protostream.domain.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.