Requirement and benefit of groupBy attribute is not clear in SQL Maps Dev Guide
-------------------------------------------------------------------------------
Key: IBATIS-150
URL: http://issues.apache.org/jira/browse/IBATIS-150
Project: iBatis for Java
Type: Improvement
Components: Documentation
Reporter: Ersin Er
Priority: Minor
The example on page 28 of SQL Maps Developer Guide uses "groupBy" attribute's
requirement and benefit in the SQLMap XML file. The requirement and benefit of
this attribute is not clear. There are two main reasons for this issue:
1) The SQL statement given as an example also uses groupBy (which is really not
related to the one usen as an XML attribute.)
2) The groupBy attribute's value is given as the name of the DB table column
which also same as the Java class' preperty name.
Solution:
1) A simpler query may be provided so that groupBy attributes requirement and
benefits becomes clearer.
2) Column name and property name may be selected to be different so that it
becomes clear that groupBy attribute takes a property name as the value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira