Hi,
I have several tables for which I would need to map the Oracle ROWID pseudocolumn. It seems that this is not currently possible in LLBLGen Pro 2.5.
The reason is that I need to use the Change Notification feature of ODP.NET 10gR2.
This feature allows an application to register for notifications on table data changes. The notifications received by the application also include information about which rows were added/updated/deleted. Unfortunately, these rows are identified by rowid, not by primary key.
For more information about the Change Notification Feature see the following articles:
http://www.oracle.com/technology/oramag/oracle/06-mar/o26odpnet.html
http://www.oracle.com/technology/oramag/oracle/06-may/o36odp.html
I found the following ugly workaround that allows me to access the ROWID pseudocolumn:
Let's say I have a table "person" with primary key "person_id". Then I do:
create or replace view person_row_id as
select
person_id,
rowid row_id
from
person
;
and map the view "person_row_id" as an entity. Next, I can add a 1:1 relationship from person to person_row_id.
However, this is an ugly hack and requires an additional view per table.
Can you suggest a better/easier workaround or (preferrably ;-) add the capability to map rowids to the designer?
Thanks and best regards,
Christoph