Can we delete foreign key?



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

Post New Answer

More Hibernate Interview Questions

What we can not do in jdbc but can do hibernate?

1 Answers  


What is strategy in hibernate?

1 Answers  


What is Hibernate SessionFactory and how to configure it?

1 Answers  


How to insert data into database using spring mvc and hibernate?

1 Answers  


What is session in hibernate?

1 Answers  


Why orm is required?

1 Answers  


What is primary key in er diagram?

1 Answers  


What is the use of hibernate proxy in hibernate?

1 Answers  


What is the java persistence api used for?

1 Answers  


What are the states in hibernate?

1 Answers  


What is lazyinitializationexception in hibernate?

1 Answers  


Which design patterns are used in Hibernate framework?

1 Answers  


Categories