Package org.infinispan.client.hotrod.query.testdomain.protobuf

Examples of org.infinispan.client.hotrod.query.testdomain.protobuf.AccountPB


      assertEquals(1, list.size());
      assertEmbeddedAccount((Account) list.get(0));
   }

   private AccountPB createAccount() {
      AccountPB account = new AccountPB();
      account.setId(1);
      account.setDescription("test description");
      account.setCreationDate(new Date(42));
      return account;
   }
View Full Code Here


      assertEquals(1, list.size());
      assertEmbeddedAccount((Account) list.get(0));
   }

   private AccountPB createAccount() {
      AccountPB account = new AccountPB();
      account.setId(1);
      account.setDescription("test description");
      account.setCreationDate(new Date(42));
      return account;
   }
View Full Code Here

   public AccountPB readFrom(ProtoStreamReader reader) throws IOException {
      int id = reader.readInt("id");
      String description = reader.readString("description");
      long creationDate = reader.readLong("creationDate");

      AccountPB account = new AccountPB();
      account.setId(id);
      account.setDescription(description);
      account.setCreationDate(new Date(creationDate));
      return account;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.client.hotrod.query.testdomain.protobuf.AccountPB

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.