الجمعة، 8 أبريل 2011

History Columns in adf

if you want to override Exists History Columns in adf such as (created by)
do the following steps
  • create Java File for the entity you want
  • override (getHistoryContextForAttribute) method and write the following code

@Override
protected Object getHistoryContextForAttribute(AttributeDefImpl attributeDefImpl)
{
if(attributeDefImpl.getHistoryKind()
== AttributeDefImpl.HISTORY_CREATE_USER)
{
return "amr";
}
return super.getHistoryContextForAttribute(attributeDefImpl);
}