Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27453/src/main/java/org/xdoclet/plugin/hibernate

Modified Files:
        HibernateMappingPlugin.java 
Log Message:
Added testcase for Components that use interfaces

Index: HibernateMappingPlugin.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate/HibernateMappingPlugin.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** HibernateMappingPlugin.java 4 Jul 2005 12:34:15 -0000       1.44
--- HibernateMappingPlugin.java 28 Jul 2005 08:42:11 -0000      1.45
***************
*** 15,18 ****
--- 15,19 ----
  import org.apache.commons.logging.LogFactory;
  
+ import org.generama.GeneramaException;
  import org.generama.JellyTemplateEngine;
  import org.generama.QDoxCapableMetadataProvider;
***************
*** 219,222 ****
--- 220,224 ----
  
          if (javaClass == null) {
+             log.error("Sourcecode for class '" + className + "' not found by 
metadata povider");
              throw new IllegalArgumentException("Class metadata for " + 
className + " not found");
          }
***************
*** 225,246 ****
      }
  
-     /*
-        public Object getMetadata(Object metadata) {
-            if (metadata == null) {
-                throw new NullPointerException("Requested metadata can't be 
null");
-            }
-            final String originFileName = 
metadataProvider.getOriginalFileName(metadata);
-            if (originFileName == null) {
-                throw new IllegalArgumentException("Original file of requested 
metadata can not be located by provider");
-            }
-            return CollectionUtils.find(getMetadata(),
-                new Predicate() {
-                    public boolean evaluate(Object o) {
-                        String fn = metadataProvider.getOriginalFileName(o);
-                        return originFileName.equals(fn);
-                    }
-                });
-        }
-      */
      /**
       * derive property name from metadata. strip / decapitalize
--- 227,230 ----



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to