Working code with Hibernet example.