This is a bug in ADF 11g R2, and sometimes so much annoying for developer.
Bug Is-
Cheers... happy debugging
Bug Is-
- Suppose you have created business components for Employees table of HR Schema, there is HireDate in Employees table , see it in EntityObject-
- Now go to source and see, it is of type oracle.jbo.domain.Timestamp (default java representation of Timestamp database data type )
- Now go to Employees ViewObject and create a transient variable for DOB(Date Of Birth) and select it as Timestamp
- Now after this if developer tries to get or set value of this transient variable, it shows a exception (java.sql.Timestamp can not be cast to oracle.jbo.domain.Timestamp)
- To solve this error go to Employees ViewObject and select transient attribute and go to source, se it is of type java.sql.Timestamp
- Change it to oracle.jbo.domain.Timestamp and then run it
- So this is a bug when developer creates new Transient or Query bind variables of Timestamp type, ADF automatically assign it java.sql.Timestamp
Cheers... happy debugging