Skip to Content
0
Dec 18, 2007 at 10:33 PM

Enitty ejb findByPrimaryKey with a compund key

52 Views

All,

I have a CMP entity bean with a compounded primary key and the the default finder findByPrimaryKey by default has the return type set the compound primary key class. I am not sure If this is correct or not. I would have expect it to return a the entity object as opposed to the pimary key class.

It is possible I do not understand this purpose of this finder method...

Any help or clarification would be greatly appreciated.

Cheers,

Derek