Hi all,
I am new to Hibernate,
Just went through the examples on JPA,
Would like to know two things,
Firstly I am inquisitive to know whether the EntityListener class could be used to track changes in the entities only or the database as well.
I mean I have the database and at runtime I have the entities, so is it that EntityListener can track changes in entities only or any change on the database ?
Secondly (assuming the answer to first is NO)
Is it possible that a SessionBean know any change in the database (not entity) somewhat like a database trigger using Hibernate and JPA?
Thank you,
_________________ Max
|