[EMAIL PROTECTED] wrote: > * @ejb.finder > * view-type = "both" > * description = "find the Criminals by > PrimaryKey" > * signature = "com.criminalsearch.CriminalRemote > findByPrimaryKey(Integer criminalPK) > * role-name = "Operator" > * query = "SELECT OBJECT(a) FROM > com.criminalsearch.Criminal AS a WHERE a.criminalPK = ?1" > * result-type-mapping = "Local" > * transaction-type = "Required" > * unchecked="true"
You do not need to declare the findByPrimaryKey finder method; it is created by your container automatically. Oh, well I suppose since you're adding security constraints maybe you need to do it that way. See note below as well. > * @ejb.finder > * view-type = "both" > * description = "find the Criminals by LastName" > * signature = "java.util.Collection > findByLastName(java.lang.String lastName) > * role-name = "Operator" > * query = "SELECT DISTINCT OBJECT(a) FROM > Criminal AS a WHERE a.lastName = ?1" > * result-type-mapping = "Local" > * transaction-type = "Required" > * unchecked="true" I see that you are not terminating the signatures with a " -- could this have any impact? It looks like it's getting into your DD just fine, so probably not. Also, you specify that a view-type of "both" but the result-type-mapping is "Local". Will this cause problems? I'm using only local interfaces for our entity beans. ...grasping at straws... :) David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user