configure hibernate session and movie resource