Hi Hervé,

Rather than get into a debate about the exact semantics of
getRepository() (which is a generally troublesome method for any
repository wrappers like the TransientRepository class), how about
discussing your use case instead?

Why do you need to class-cast the return value of
Session.getRepository(). If you need access to the extra
TransientRepository methods, why not keep a direct reference around
for that?

BR,

Jukka Zitting

Reply via email to