|
From: Sławomir R. (J. <nh...@gm...> - 2011-05-07 17:40:48
|
[ http://216.121.112.228/browse/NH-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21016#action_21016 ]
Sławomir Rosiek commented on NH-2510:
-------------------------------------
Domain:
public class GalleryItem
{
public virtual int Id { get; set; }
public virtual string FileName { get; set; }
public virtual byte[] Data { get; set; }
}
XML Mapping:
<class name="GalleryItem">
<cache usage="read-only" />
<id name="Id">
<generator class="native" />
</id>
<property name="FileName" />
<property name="Data" lazy="true" />
</class>
> Lazy-loading doesn't work with cache
> ------------------------------------
>
> Key: NH-2510
> URL: http://216.121.112.228/browse/NH-2510
> Project: NHibernate
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.0.0.GA
> Reporter: Sławomir Rosiek
> Priority: Minor
> Attachments: NH2510-Fixture.patch
>
>
> If I set caching in entity which has lazy property I have the following exception:
> System.InvalidCastException: Unable to cast object of type 'System.Object' to type 'System.Byte[]'.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|