Hey folks,
I'm trying to move an CMP entity bean with a PrimaryKey defined in its
own class (i.e. UserPK) into JBoss. This class has one field (id) that
is a String and that maps to one of the bean's attributes that I have
mapped through JAWS to a VARCHAR field.
The problem is that when I call "UserHome.findByPrimaryKey(key)", JBoss
gets upset because it is expecting key to be a String not a UserPK
object. ClassCastException and all that.
I'm moving an EJB built using VisualCafe wizards and this is how the
wizards construct the bean. Is VisualCafe wrong? Do I need to do some
mapping to tell JAWS to extract the real key somehow from the object?
Is this just a limitation of JBoss for now?
Thanks,
Richard
--
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]