Package models.edit

Examples of models.edit.CustomKeyChild


     * Test single relation with custom key.
     */
    @Test
    public void testSingleRelationWithCustomKey()
    {
        CustomKeyChild child1 = new CustomKeyChild();
        child1.key = "child1";
        child1.name = "Child One";
        child1.save();

        HashMap<String, String[]> params = new HashMap<String, String[]>();
        params.put("parent.customKeyChild.key", new String[] { "child1" });
        Parent parent = new Parent();
        parent = parent.edit("parent", params);
View Full Code Here


     * Test multiple relation with custom key.
     */
    @Test
    public void testMultipleRelationWithCustomKey()
    {
        CustomKeyChild child1 = new CustomKeyChild();
        child1.key = "child1";
        child1.name = "Child One";
        child1.save();

        HashMap<String, String[]> params = new HashMap<String, String[]>();
        params.put("parent.customKeyChildren.key", new String[] { "child1" });
        Parent parent = new Parent();
        parent = parent.edit("parent", params);
View Full Code Here

TOP

Related Classes of models.edit.CustomKeyChild

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.