My problem is: I have two tables with a only a primary key, but I have other table that is related with the other two tables. This table has two primary key and I want to create a entity bean. Can I define a method findByPrimaryKey with two params or does I have to define a object with two params?
Can I define this entity as cmp?
You need compoud primary key
Create class MyBeanPK with needed fields, so you will have
MyBean findByPrimaryKey(MyBeanPK pk) finder method