Package org.nutz.dao.test.meta

Examples of org.nutz.dao.test.meta.PetObj


  }

  @Test
  public void test_integer_object_column() {
    dao.insert(PetObj.create("X"));
    PetObj pet = dao.fetch(PetObj.class, "X");

    assertEquals("X", pet.getName());
    assertNull(pet.getAge());

    dao.update(pet.setAge(20));
    pet = dao.fetch(PetObj.class, "X");
    assertEquals(20, pet.getAge().intValue());

    dao.update(pet.setAge(null));
    pet = dao.fetch(PetObj.class, "X");
    assertNull(pet.getAge());
  }
View Full Code Here


    }

    @Test
    public void test_integer_object_column() {
        dao.insert(PetObj.create("X"));
        PetObj pet = dao.fetch(PetObj.class, "X");

        assertEquals("X", pet.getName());
        assertNull(pet.getAge());

        dao.update(pet.setAge(20));
        pet = dao.fetch(PetObj.class, "X");
        assertEquals(20, pet.getAge().intValue());

        dao.update(pet.setAge(null));
        pet = dao.fetch(PetObj.class, "X");
        assertNull(pet.getAge());
    }
View Full Code Here

    }

    @Test
    public void test_integer_object_column() {
        dao.insert(PetObj.create("X"));
        PetObj pet = dao.fetch(PetObj.class, "X");

        assertEquals("X", pet.getName());
        assertNull(pet.getAge());

        dao.update(pet.setAge(20));
        pet = dao.fetch(PetObj.class, "X");
        assertEquals(20, pet.getAge().intValue());

        dao.update(pet.setAge(null));
        pet = dao.fetch(PetObj.class, "X");
        assertNull(pet.getAge());
    }
View Full Code Here

TOP

Related Classes of org.nutz.dao.test.meta.PetObj

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.