Using components properties in Criteria causes a InvalidCastException

Description

GruppeName is a Component which contains two Columns/Properties.

I received a InvalidCastException in Type/AbstractStringType.cs:32 becasue the object was casted directly instead of calling the method .ToString();

Solution/Patch:

Changes in file Type/AbstractStringType.cs:

From:

To:

Environment

None

Activity

Frédéric Delaporte 
September 10, 2020 at 10:00 PM

Moved here.

Julian Maughan 
September 27, 2010 at 10:57 PM

I recently made improvements to the Criteria API for composite IDs and components, so you may find the recent 3.0.0.Alpha3 release will solve your issue. If your issue is not resolved in Alpha3 (or you do not want to use 3.0.0), you will need to provide a test before we can take this issue any further.

Fabio Maulo 
November 20, 2009 at 12:40 PM

Test case?

Obsolete

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created November 11, 2009 at 4:27 AM
Updated September 10, 2020 at 10:00 PM
Resolved September 10, 2020 at 10:00 PM
Who's Looking?