well I am not that advanced in hibernate and I tried to search a lot, found lots of similar questions but none really applying my case. I have a table TABLE1 which has an index "id" and another table which has as index (TABLE1_ID and NUMBER). Only TABLE1_ID is a foreign key while number doesn't reference anything specificwell I am not that advanced in hibernate and I