Search in sources :

Example 11 with Address

use of io.requery.test.model.Address in project requery by requery.

the class RandomData method randomAddress.

static Address randomAddress() {
    Random random = new Random();
    Address address = new Address();
    address.setLine1(random.nextInt(4) + " Fake St");
    address.setCity("San Francisco");
    address.setState("CA");
    address.setZip(String.valueOf(10000 + random.nextInt(70000)));
    address.setType(AddressType.HOME);
    address.setLatitude(0.0f);
    address.setLongitude(0.0f);
    return address;
}
Also used : Random(java.util.Random) Address(io.requery.test.model.Address)

Aggregations

Address (io.requery.test.model.Address)11 Test (org.junit.Test)10 Person (io.requery.test.model.Person)8 Group_Person (io.requery.test.model.Group_Person)7 EntityCache (io.requery.EntityCache)1 EntityCacheBuilder (io.requery.cache.EntityCacheBuilder)1 Random (java.util.Random)1 CacheManager (javax.cache.CacheManager)1 CachingProvider (javax.cache.spi.CachingProvider)1