一个关于EJB/CMP的问题,让我百思不得其解

yahoo163 02-12-06

我在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.

nethero
2002-12-06 14:35

哪里有int型的主贱? 换成Integer

yahoo163
2002-12-06 15:15

谢谢!