D***@cexp.com
2003-10-22 15:18:24 UTC
I have a composite FK and would like Middlegen to generate finders for them.
I have specified:
<finders>
<and>
<indexed/>
<fk/>
</and>
</finders>
...however, the result is as below (I get finders for the indexed columns,
but not for the FK (parentKey1, parentKey2).
Any ideas?
Don Shade
* @ejb.finder
* signature="java.util.Collection findByParentKey1(java.lang.String
parentKey1)"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="SELECT DISTINCT OBJECT(o) FROM Child o WHERE o.parentKey1 = ?1"
* description="PARENT_KEY_1 is indexed."
*
* @ejb.finder
* signature="java.util.Collection findByParentKey2(java.lang.String
parentKey2)"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="SELECT DISTINCT OBJECT(o) FROM Child o WHERE o.parentKey2 = ?1"
* description="PARENT_KEY_2 is indexed."
I have specified:
<finders>
<and>
<indexed/>
<fk/>
</and>
</finders>
...however, the result is as below (I get finders for the indexed columns,
but not for the FK (parentKey1, parentKey2).
Any ideas?
Don Shade
* @ejb.finder
* signature="java.util.Collection findByParentKey1(java.lang.String
parentKey1)"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="SELECT DISTINCT OBJECT(o) FROM Child o WHERE o.parentKey1 = ?1"
* description="PARENT_KEY_1 is indexed."
*
* @ejb.finder
* signature="java.util.Collection findByParentKey2(java.lang.String
parentKey2)"
* result-type-mapping="Local"
* method-intf="LocalHome"
* query="SELECT DISTINCT OBJECT(o) FROM Child o WHERE o.parentKey2 = ?1"
* description="PARENT_KEY_2 is indexed."