java - How to delete-Cascade tables using Hibernate for multiple keys -


i have table static structure given. label can either account or subaccount:

static table click

i want create 1 many mapping between account , subaccount , store mapping second table 2 columns called mappings

mappings table click

without refactoring first table how establish relation between table1 , table 2 that: column 1 of table 1 gets cascaded col 1 of table 2 label = account , cascaded col2 of table 2 label = subaccount....? in hibernate so?


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -