Where do you look when you have decided to go for programatically Business Components? I find myself always starting in this 2 resources:
Reason why I like them is because they example comes with all classes and the abstraction design ready for you to go. As long as your requirement stays closer to the example provided things shouldn't get complicated. However, this is not always the case. For example, I created a project based on the example, where I added a programmatically view object and a viewLink with itself (Projects - Subprojects). The only way I could make it to work properly without modifying the code was to not expose the viewAccessor in the destination viewObject. This way master-detail was created accordingly but you can't make use of Tree component in the UI (no viewLink accessor).
Another thing that happened to me is that repeating the same procedure, with a viewLink between Projects and Tasks, the VO would get populated correctly for the first row and after I will get an SQL Exception: Error in SELECT FROM WHERE .....
Before pointing me to the OTN keep reading... I don't plan to ask why it is not working or what do I need to do to make it work. I only would like to ask, what do you do when you get to this point, stucked, and knowing that you need to deliver something to meet a deadline, and thinking that tomorrow I should, again, forget about programatically BC and go for a POJO DC because I need to deliver.
I wonder if this is the reason why is so little documentation about it. These examples are from 10g till 11g earlies relases. I understand that to correctly implement programatically BC you need to have a good understanding and knowledge of all the framework classes but, I also believe it is not easy or task of a day or week to do (even if you had the time just to read).
So, if you had found yourself in this situation, my question is.. What do you do?
PS: more links regarding programatically BC are to be found in a older post: ADF best practice to give webservice calls.