Hi,
I'm trying to do some work with EJB3 defining a composite primary key for an Entity Bean.
JBossIDE gives me an error on the following statement:
@Column(name = "xxx", primaryKey = true, nullable = false, updateable = false, insertable = false)
stating the following for this statement:
"The attribute primaryKey is undefined for the annotation type Column"
Maybe I missed something in the evolving specification. But isn't primaryKey supposed to define the elements of the primary Key?
Thanks,
Reiner
Try this:
@Id
@Column(name = "xxx", nullable = false, updateable = false, insertable = false)
The @Id annotation type is to indicate that the column/field is a primary key.
Max Lam