emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

sqlMap DTD ordering is too strict #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<!ELEMENT resultMap (constructor?,id*,result*,association*,collection*, 
discriminator?)>
enforces strict ordering which is problematic for two reasons:
- from code organization standpoint it is preferable to sort the map in some 
application specific order for developer convenience, but DTD forces 
collections and associations to be placed at the end of the list;
- I refactored large project to 3.0 with a script from
http://code.google.com/p/mybatis/issues/detail?id=101
almost without touching the maps, but reliable field reordering is too much for 
this Perl snippet.

Original issue reported on code.google.com by arkadi.s...@gmail.com on 13 Sep 2010 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by eduardo.macarron on 16 Jan 2012 at 5:00