ejb/cmp的问题,我实在没有办法了

02-12-06 yahoo163
我在jb7下写的cmp,作了一个一对多的例子,如果主键定义的是string型的可以正常通过编译,如果主键改称int型就会报错。为什么?有谁知道
"testcmp.ejbgrpx": In relationship 'tbGnsq-vGncd', role 'VGncdRelationshipRole', a cmp-field used to implement this relationship has a primitive type. All cmp-fields that double as cmr-fields must have an object type.

jxb8901
2002-12-06 16:08
主键必须是可序列化的RMI类型, 你应该将主键设为Integer

yahoo163
2002-12-09 18:57
非常感谢