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