A entity bean can have only one primary key and hence only one meaningful findByPrimaryKey() is possible and allowed.
Post by:Devender Thareja
If I create a method findByPrimaryKey(String str1, String str2) will it not compile? I know it is not making sense, but in this case I think container will not use it and it will be considered a normal business method.
Post by:Sankar Subbiramaniam
Code would compile. but whether it would deploy or not depends on the container provider.