User: rinkrank
Date: 02/03/24 14:40:33
Modified: core/src/xdoclet/ejb/tags/vendor
WeblogicRelationTagsHandler.java
Log:
Corrected comments
Revision Changes Path
1.10 +2 -17
xdoclet/core/src/xdoclet/ejb/tags/vendor/WeblogicRelationTagsHandler.java
Index: WeblogicRelationTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/vendor/WeblogicRelationTagsHandler.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -r1.9 -r1.10
--- WeblogicRelationTagsHandler.java 24 Mar 2002 22:35:51 -0000 1.9
+++ WeblogicRelationTagsHandler.java 24 Mar 2002 22:40:33 -0000 1.10
@@ -12,7 +12,7 @@
/**
* @author <a href="mailto:[EMAIL PROTECTED]">Aslak Helles�y</a>
* @created Sept 11, 2001
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
public class WeblogicRelationTagsHandler extends RelationTagsHandler
{
@@ -78,33 +78,18 @@
}
/**
- * Makes sure the column-map tags are on the right side
+ * Makes sure the column-map tags are on the left side and target-column-map
tags right
*/
public void ensureColumnMapTagsRight() {
- // Before this methd is executed, we might have:
- // 1(fk) <-> 1(pk)
- // 1(fk) --> 1(pk)
- // 1(fk) <-- 1(pk)
- // m (column-map, target-column-map) <-- n
- //
- // make sure it's
- // 1(pk) <-> 1(fk)
- // 1(pk) --> 1(fk)
- // 1(pk) <-- 1(fk)
- // m <-- n (column-map, target-column-map)
-
boolean leftHasTargetColumnMapTags = false;
boolean rightHasColumnMapTags = false;
if( currentRelation.getLeftMethod() != null ) {
-
System.out.println("LEFT:"+currentRelation.getLeftMethod().name());
leftHasTargetColumnMapTags =
currentRelation.getLeftMethod().doc().tags("weblogic:target-column-map").length != 0;
}
if( currentRelation.getRightMethod() != null ) {
-
System.out.println("RIGHT:"+currentRelation.getRightMethod().name());
rightHasColumnMapTags =
currentRelation.getRightMethod().doc().tags("weblogic:column-map").length != 0;
}
if( leftHasTargetColumnMapTags || rightHasColumnMapTags ) {
- System.out.println("SWAP");
currentRelation.swap();
}
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel