`
d02540315
  • 浏览: 32276 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论

serialized objects

    博客分类:
  • JDK
阅读更多
This started again... a thread from *****:

What do you consider a best practice for serialVersionUID?

T

______________________________________________
From:   *******
Sent:   Thursday, November 15, 2007 10:45 AM
To:     *******
Cc:     *******
Subject:        serilaVersionUID

Hi, *****, I realized that you changed the servialVersionUID in 11 TOs and make them unique.  What is the purpose to make them unique?

Once the serilaVersionUID in TO is modified, both BPM and rule engine has to be deployed again.  Now Dev rule engine is broken, and I am afraid Dev BPM (if it is running) also need redeploy.

*******



So after doing research again here is what I (*****) thinks:

The purpose of the serialVersionUID is to give the developer the control of when a class is compatible with previous versions and when not.
The consequence of this is that when the class changes, the developer needs to check that if the new class has compatible changes with previous versions, then keep the same number, if changes are not compatible, then change the number.
you can use the command: serialver to generate a serial version uid.
Articles:

JavaWorld
Java Object Serialization Specification version 1.5.0
分享到:
评论

相关推荐

    VB.NET多款风格渐变和无规则按钮

    The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly...

    Beginning Microsoft Visual CSharp 2008 Wiley Publishing(english)

    Serialized Objects 842 Monitoring the File Structure 847 Summary 855 Exercises 855 Chapter 25: XML 856 XML Documents 856 Using XML in Your Application 865 Summary 884 ...

    解决Django响应JsonResponse返回json格式数据报错问题

    TYPEERROR: In order to allow non-dict objects to be serialized set the safe parmeter to False 解决: return JsonResponse({“name”: “tom”}, safe=False) 增加safe=false,使其接受列表 补充知识:...

    Python库 | marshmallow_objects-1.0.18-py2.py3-none-any.whl

    marshmallow_objects是一个Python库,主要用于数据序列化和反序列化,它是基于流行的marshmallow库的扩展。在Python中,尤其是在处理API开发、数据库交互或JSON数据转换时,数据的序列化和反序列化是一个常见的需求...

    Android代码-一款新的AndroidNoSQL—WaspDb

    Keys and Values are simple Java Objects. Everything is automatically serialized using the Kryo serialization library. Data is stored by an implementation of hashmaps on disk. QuickStart To use it with...

    json序列化jar包

    What's different about Flexjson is it's control over what gets serialized allowing both deep and shallow copies of objects. Most JSON serializers mimic object serialization libraries and try to ...

    boesdk_java_apiRef_12_en.zip

    - **serialized-form.html**: 描述了那些支持序列化的类,这对于理解和处理对象的序列化和反序列化过程非常重要。 2. **BOESDK Java API核心概念**: - **连接管理**: BOESDK提供了连接到BusinessObjects服务器的...

    json.js_json2.js

    values are stringified for objects. It can be a function or an array of strings. space an optional parameter that specifies the indentation of nested structures. If it is omitted, the text will ...

    Effective Java 3rd edition(Effective Java第三版英文原版)附第二版

    2 Creating and Destroying Objects Item 1: Consider static factory methods instead of constructors Item 2: Consider a builder when faced with many constructor parameters Item 3: Enforce the singleton ...

    Json.net for .net3.5

    - Attributes like JsonIgnore and JsonProperty can be added to a class to customize how a class is serialized - Ability to convert JSON to and from XML Instructions: 1. Extract Newtonsoft.Json....

    Python-djangoguardianDjango12实现了单个对象权限

    return Response(article.serialized_data) else: return Response(status=403) ``` 总结来说,`django-guardian`为Django 1.2及更高版本提供了强大的对象级别权限管理功能,使得权限控制更加精细化,满足了复杂...

    iOS Fuondation Framework Reference

    **Overview**: `NSArchiver` is a class that manages the archiving process for objects, allowing them to be serialized to a stream or file. It is commonly used for saving and restoring application state...

    boejsf_java_apiRef_12_en

    4. **serialized-form.html**:描述了类在序列化时的表示形式,对于理解对象如何存储和传输很有帮助。 5. **overview-tree.html**:显示了API的包和类的层次结构,便于理解它们之间的关系。 6. **allclasses-frame....

    django model object序列化实例

    serialized_data = single_object_data[1:-1] # 去除首尾的"[ ]" ``` 2. **自定义JSONEncoder**:另一种方法是创建一个继承自`simplejson.JSONEncoder`的类,并重写`default()`方法,以便在序列化过程中处理Django...

    eBayjsonpipe.zip

     The delimiter separating valid JSON objects; default is "\n\n"  "success": function(data) {  // Do something with this JSON chunk  },  "error": function(errorMsg) {  // ...

    详解django的serializer序列化model几种方法

    goods_list = Goods.objects.all()[:10] # 使用serializers serialize方法将模型实例序列化为JSON data = serializers.serialize('json', goods_list) # 返回序列化后的JSON数据 return HttpResponse(data, '...

    Python库 | UnityPy-1.7.8-py3.8.egg

    4. 数据操作: 根据需求,可以遍历和操作加载的数据,如获取场景中的所有游戏对象,`for obj in scene.objects:`,或者获取特定组件的信息,`component = obj.get_component('YourComponentName')`。 5. 保存和导出:...

    Python库 | django-deep-collector-0.3.1.tar.gz

    serialized_data = MyModelSerializer(my_model).data ``` 以上就是关于`django-deep-collector-0.3.1`的详细介绍,它为Django开发者提供了一种强大的工具,使得处理和序列化复杂的模型数据变得更加容易和高效。在...

    acpi控制笔记本风扇转速

    control method attempts to create 2 objects of the same name. This once again returns AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that will dynamically serialize the ...

    pods:快速简单的C ++序列化器

    2017年3.5 GHz Intel Core i7 16 Gb 2133 MHz LPDDR3 data size: 11520serialized data size: 11632memcpy total: 27465 Mb total time: 2396.19 ms speed: 11461.9 Mb/sserialization total: 27732 Mb total time: ...

Global site tag (gtag.js) - Google Analytics