User bryand = users.create("bryand", t0, 5, t1, t2, "this is a relatively long string", someBinary, 1.2d, 3.4d, true);
verifyCreatedUser(users, t0, t1, t2, someBinary, bryand);
}
public void testCreateWithBigintPrimaryKey() throws Exception {
IPostPersistence posts = dbs.getDatabase1().posts();
long postId = Integer.MAX_VALUE * 2l;
assertTrue(posts.save(new Post(postId, "post title", System.currentTimeMillis(), 1, System.currentTimeMillis())));
posts.clearCacheById(postId);
Post foundPost = posts.find(postId);
assertNotNull("Post should be found from db by bigint id", foundPost);
foundPost = posts.find(postId);
assertNotNull("Post should be found in cache by bigint id", foundPost);
Comment c = new Comment(1, "comment content", 1, postId, System.currentTimeMillis(), getDBS());
assertNotNull("Post should be findable by foreign key", c.getPost());
}