Hibernate - How to implement a 'Composite Key' :
Suppose we have a Table in database which has many coulumns, among which two columns are PRIMARY KEY : UNIQUE_ID, NOTIFICATION_CHANNEL.We will write a separate Class which will contain these two columsn which are a part of COMPOSIT PRIMARY KEY.
We will write a separate class for rest of the fields in that Table; and this class will also hold the reference of COMPOSIT PRIMARY KEY classs :->
Comments