Jdev version: 11.1.1.7.1
We are debugging a production issue and found a strange behavior on debugging. So opening this thread to discuss the same with the community. I shall keep the thread posted with what I find.
Scenario: View Object is based on ONE Entity Object that is based on a single attribute primary key. Now in certain flows, the below code does not seem to be fetching the row even though the row is present in database.
ViewObjectImpl vo = this.getMyVO();
Row[] rows = vo.findByKey(new Key(new Object[] { primaryKey}), 1);
Row row = (rows != null && rows.length > 0) ? rows[0] : null;