views:

89

answers:

1

Looked at many forums but haven't found answer...Simple stuff, method annotated with @PostLoad newer gets invoked...added listener via @EntityListeners but problem remains. I'm using SessionFactory based configuration.

A: 

The EJB3 @PostLoad annotation doesn’t work when using a SessionFactory based configuration, the post-load method will never get called.

Either use Hibernate's Interceptors or events or an EntityManager based configuration.

Pascal Thivent