예제 #1
0
  @Test
  public void testIdLessBean() {
    BeanMapping<IdLessTestBean> bm = BeanMappings.get(IdLessTestBean.class);

    Assert.assertNotNull(bm);
    Assert.assertNull(bm.id());

    Assert.assertEquals("test_schema.id_less_tester", bm.table());
  }
예제 #2
0
  @Test
  public void testTable__fullBeanMapping() {
    BeanMapping<BeanMappingTestBean> bm = BeanMappings.get(BeanMappingTestBean.class);

    Assert.assertNotNull(bm);
    Assert.assertNotNull(bm.id());

    Assert.assertEquals("test_schema.bean_mapping_test", bm.table());
  }