{
tx = _kit.getTransaction(_conn);
tx.begin();
example = (Article) _conn.getObjectByIdentity(
new Identity(Article.class, Article.class,
new Object[] {new Integer(77777)}));
if (example == null)
{
example = Article.createInstance();
example.setArticleId(77777);
}
example.setProductGroupId(7);
example.setStock(333);
example.setArticleName("333");
_conn.makePersistent(example);
tx.commit();
Identity oid = _conn.getIdentity(example);
// get from the cache
tx = _kit.getTransaction(_conn);
tx.begin();
example = (Article) _conn.getObjectByIdentity(oid);