Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Creating the User and adding a UserEmail
- */
- String testUserId = "userId";
- User testUser = new User(testUserId, null);
- testUser.emails.add(new UserEmail("test@email.com"));
- testUser.save();
- /*
- * Fetching the User
- */
- User retrievedTestUser = User.find.where().eq("userId", testUserId).findUnique();
- /*
- * Result:
- * User data is fetched correctly, however UserEmail data for the user is not present
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement