Richard Deadman wrote:
> 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?

There is no such limitation. I'm guessing that your ejb-jar.xml is
weird. Can you please provide it?

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to