Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20043/modules/ejb/src/xdoclet/modules/ejb/entity
Modified Files:
PkTagsHandler.java
Log Message:
don't generate a primkey-field if only one tag is marked with ejb.pk-field
because this breaks backward-compatibility and the samples (XDT-1139)
Index: PkTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/PkTagsHandler.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** PkTagsHandler.java 9 Apr 2005 16:31:43 -0000 1.16
--- PkTagsHandler.java 10 Apr 2005 09:55:22 -0000 1.17
***************
*** 43,54 ****
String pkField = clazz.getDoc().getTagAttributeValue("ejb:bean",
"primkey-field", true);
! if (pkField == null) {
! // search for a single ejb.pk-field tag
! String fields = PersistentTagsHandler.fieldList(clazz,
"ejb:pk-field", null, 3, null, true);
!
! if (fields.length() > 0 && fields.indexOf(",") < 0) {
! pkField = fields;
! }
! }
return pkField;
}
--- 43,55 ----
String pkField = clazz.getDoc().getTagAttributeValue("ejb:bean",
"primkey-field", true);
! /* TODO what should be done if only one cmp-field is marekd with
ejb.pk-field
! * if (pkField == null) {
! * / search for a single ejb.pk-field tag
! * String fields = PersistentTagsHandler.fieldList(clazz,
"ejb:pk-field", null, 3, null, true);
! * if (fields.length() > 0 && fields.indexOf(",") < 0) {
! * pkField = fields;
! * }
! * }
! */
return pkField;
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel