Generate method in class NHibernate.Id.ForeignGenerator fails when working with stateless sessions

Description

When using stateless sessions the Generate method in class NHibernate.Id.ForeignGenerator fail because there is an explicit cast from ISessionImplementor to ISession, so when working with stateless sessions, the cast fail because StatelessSessionImplementor implements IStatelessSession instead of ISession.

Related Hibernate issue: https://hibernate.atlassian.net/browse/HHH-968

Environment

None

Activity

Show:

Alex Zaytsev 
December 14, 2017 at 1:00 AM

The discussion is moved to #1244

I would say that this is "by design". So, reducing the priority and changing to "improvement"

Alex Zaytsev 
October 3, 2013 at 6:36 AM

Fernando Mato Mira 
October 3, 2013 at 6:05 AM

Related issue:

Alex Zaytsev 
October 3, 2013 at 5:03 AM

Could someone provide a test case?

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created September 5, 2011 at 8:27 PM
Updated May 15, 2021 at 6:43 PM
Resolved May 15, 2021 at 6:43 PM
Who's Looking?