Exemplo n.º 1
0
  public void testConversion() {
    int id = (int) (System.currentTimeMillis() % Integer.MAX_VALUE);
    ConversionVO vo =
        new ConversionVO(
            null, new ConversionId(new Integer(id)), null, new ConversionId(new Integer(id + 1)));
    broker.beginTransaction();
    broker.store(vo);
    broker.commitTransaction();

    Identity identity = new Identity(vo, broker);
    broker.clearCache();
    ConversionVO find_vo = (ConversionVO) broker.getObjectByIdentity(identity);
  }