I need to create a mapping file for a table that has no real primary key. I realize that keeps NHibernate from being able to update the data, but the data is read only from NHibernates point of view.
As an example, I have a job table the represents a finished job. Another table is job_output and contains output messages from the job. This table has no primary key, just a row for each message and a foreign-key reference back to the job. Is there a way to map this in NHibernate without making some primary key on the job_output table that is pretty much worthless from a database point of view (i.e. the data is read only)?
|