I have a doubt regarding update or delete rows from a database view using Hibernate
I have the following in Entity
@Entity
@Table(name = "V_EMPLOYEES")
.....
V_EMPLOYEES
is a database view used to join two tables
and in DAO class I am deleting a row by
entityManager.remove(entityManager.merge(employees));
Based on the above I could successfully delete a row based on Primary Key.
As I have mapped a view in Entity class, how does a row gets deleted from a table successfully? Because as per the Hibernate FAQ - view is just like any other table (except that you might not be able to update or insert to a view)
Any inputs or insights are highly appreciable.
My Hibernate version 4.1.0 Final