[hibernate-dev] Dropping "Serializable" requirement for IDs ?

Brett Meyer brett at hibernate.org
Tue Jul 5 15:12:07 EDT 2016


+1 from me as well -- thanks for bringing that up, Sanne.

On 07/05/2016 01:28 PM, Steve Ebersole wrote:
> I'm ok with this.  That is no longer a real requirement.
>
> Any disagree?
>
> On Tue, Jul 5, 2016, 11:58 AM Sanne Grinovero <sanne at hibernate.org> wrote:
>
>> Hi all,
>> today creating a unit test I was greeted by this "old friend":
>>
>>> org.hibernate.MappingException: Composite-id class must implement
>> Serializable:
>>
>> shall we get rid of this requirement?
>>
>> It's just an inconvenience for end users to have to remember this
>> marker, as far as I know we don't really need this anymore.
>>
>> I realise some code might still be needing this, but we probably can
>> do better by not actually serializing it with the default platform
>> serializer?
>>
>> Just an idea for a potential 6.0 improvement..
>>
>> Thanks,
>> Sanne
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list