My ejb-jar.xml is as follows:
AccountItem refers to Amortization. But Amortization doesn't refer to AccountItem. I have defined relationship as above. I didn't define anything in jbosscmp-jdbc.xml. The CMP container creates link from Amortization to AccountItem in Amortization table as AccountItem-Amortization., which I dont want. Is there any way I can avoid this?
Any input is apprecaited!
if you want to use a specific table, you have to specify it in the jbosscmp-jdbc.xml. In there, you can also specify if you want to use foreign keys or a mapping table (among a lot of other things). Jboss will only create the FK column if it creates the table also. if you have an existing table, you can add the fk yourself.