[hibernate-issues] [Hibernate-JIRA] Commented: (OGM-10) Discuss with Manik whether or not a copy on read is necessary

Sanne Grinovero (JIRA) noreply at atlassian.com
Sun Jan 22 18:18:10 EST 2012


    [ http://opensource.atlassian.com/projects/hibernate/browse/OGM-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45211#comment-45211 ] 

Sanne Grinovero commented on OGM-10:
------------------------------------

It would be relatively simple to patch Infinispan to always make an instance copy on read (introducing an option for that), but I'm suspecting that's not exactly what OGM needs.

Assuming one is only storing safe primitives and immutable types such as String, one might want to avoid unneeded and costly copies. But this might still be needed for example for Date, unless it's mapped as a long. Are we going to need such an option on a "per property" base?


> Discuss with Manik whether or not a copy on read is necessary
> -------------------------------------------------------------
>
>                 Key: OGM-10
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/OGM-10
>             Project: Hibernate OGM
>          Issue Type: Task
>            Reporter: Emmanuel Bernard
>            Assignee: Manik Surtani
>             Fix For: 3.0-next
>
>
> From what Manik said recently, they do marshal data when putting it in the map and thus a copy on read is not necessary.
> Clarify that and make sure mutable types do a proper copy on read if that's not the case.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list