[ http://jira.andromda.org/browse/HIB-87?page=comments#action_11375 ]
     
Peter Friese commented on HIB-87:
---------------------------------

Using the MOF ID doesn't work as desired. My UML tool produces different MOF 
IDs for the same model elements in subsequent export runs...

Also, I'd like to be the serial version UID to be stable as long as the 
signature of the class in question doesn't change. With a well-behaving UML 
tool, the approach using the MOF ID wouldn't produce a different serial version 
UID for a class that has a changed signature.

So, I will provide a method that calculates the serial version UID based on the 
signature of the class in question, similar to the JDK's very own 
implementation.

> Entity classes lack serial version UIDs
> ---------------------------------------
>
>          Key: HIB-87
>          URL: http://jira.andromda.org/browse/HIB-87
>      Project: Hibernate Cartridge
>         Type: Improvement
>     Versions: 3.0M3
>     Reporter: Peter Friese
>     Assignee: Peter Friese
>      Fix For: 3.0 RC2

>
> Hibernate entities (generated by HibernateEntity.vsl) are marked as 
> serializable, but do not get assigned a serial version UID by the generator. 
> This proves to be a problem in my current project (we are sending Entities 
> across the wire using Spring's HTTPInvoker mechanism).
> According to 
> http://java.sun.com/j2se/1.4.2/docs/guide/serialization/spec/version.html and 
> http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid, a serial version UID is 
> a must for all serializable classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to