标识符生成策略为"assigned",表示由应用程序为name属性赋值.这时,可以设置<version>版本控制元素的unsaved-value属性。如果对象的version属性为null,就表示临时对象,否则为游离对象。 Session的getIdentifier()方法返回对象的OID。