Hello,
I have a three tables.
Code:
property property_documents document_master
-------- ---------------------- ------------------
id(pk) id(pk) id(pk)
name property_id(fk) name
address document_name is_active
There is only 1 foreign key in property_documents table. property_documents and document_master has no relation.I have a two entity classes:
1) Property with id, name, address, documentList (List<String>) as a properties of it
2) Document with id, name, is_active as a properties of it.
How would be my mapping XML for property class?
Please help me. Please let me know if anything missing.