BHibernate version: 1.0.1
Mapping documents:
I have this 3 table, one for Transaction, one for Note, and one is the join table between those two. One transaction may have zero-one note.
Here's the table structure (pseudo-code):
Code:
CREATE TABLE TR_TRANSACTION
(
transaction_id PK IDENTITY,
.... // other columns,
)
CREATE TABLE TBL_NOTE
(
note_id PK IDENTITY,
note_content TEXT
)
CREATE TABLE TR_TRANSACTION_NOTE
(
transaction_id PK,
note_id
)
I have this class Transaction, and I want to have property Note, to access whether this Transaction has note (it can be some value, or it can be null), by accessing TBL_NOTE.
I was reading Hibernate documentation, and there were <join> which I think can used to solve this problem, however I don't think <join> is supported in NHibernate 1.0.1. Is there any work around?
NB: Note and Transaction class are both mapped separately already (not connected the way I wanted yet).
Thank You.