I have a table/entity “contacts” with an attribute “cnt_category” associated to another table “DLKP_CONTACT_CATEGORIES” with many to one relation and its lookup type is dropdown.
I am trying to migrate our old data. So i want to create a method in “contacts” entity to write manual the record id of a lookup in “DLKP_CONTACT_CATEGORIES”.
The existing method is
public void setCategory(DLKP_CONTACT_CATEGORIES category) {
this.category = category;
}
But i want an approach like this:
public void setCategory_RowID(long category_row_id){
this.category.id=category_row_id;
}