Can we delete foreign key?
Answer / Shrishti
In a relational database, it is generally not recommended to delete a foreign key directly. Instead, you should first remove the referenced records in the parent table before deleting the record in the child table that contains the foreign key. In Hibernate, this can be achieved using cascade operations.
| Is This Answer Correct ? | 0 Yes | 0 No |
What we can not do in jdbc but can do hibernate?
What is strategy in hibernate?
What is Hibernate SessionFactory and how to configure it?
How to insert data into database using spring mvc and hibernate?
What is session in hibernate?
Why orm is required?
What is primary key in er diagram?
What is the use of hibernate proxy in hibernate?
What is the java persistence api used for?
What are the states in hibernate?
What is lazyinitializationexception in hibernate?
Which design patterns are used in Hibernate framework?