125126127128129130131132133134135
throws Exception { EnterpriseEntityHome home = (EnterpriseEntityHome) new InitialContext().lookup("nextgenEnterpriseEntity"); try { EnterpriseEntity A = home.findByPrimaryKey("A"); } catch (ObjectNotFoundException ex) { home.create("A"); }
133134135136137138139140141142143
{ home.create("A"); } try { EnterpriseEntity B = home.findByPrimaryKey("B"); } catch (ObjectNotFoundException ex) { home.create("B"); }