From: <one...@us...> - 2003-03-29 04:08:56
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java In directory sc8-pr-cvs1:/tmp/cvs-serv947/hibernate/tool/hbm2java Modified Files: AbstractRenderer.java BasicRenderer.java Log Message: * fixed a bug in SQLExpression * fixed a bug in Expression.ge() * improved proxy handling * fixed problems with select new * reworked import mechanism * added <any> mappings Index: AbstractRenderer.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java/AbstractRenderer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AbstractRenderer.java 25 Mar 2003 07:08:37 -0000 1.1 --- AbstractRenderer.java 29 Mar 2003 04:08:49 -0000 1.2 *************** *** 7,13 **** package net.sf.hibernate.tool.hbm2java; - import java.io.PrintWriter; - import java.util.Iterator; - import java.util.List; import java.util.Map; import java.util.TreeSet; --- 7,10 ---- *************** *** 23,33 **** /** ! * Returns the true name for the given class name. By true name is ! * that it will return the Proxy for the class name if the class was ! * defined with a proxy attribute. ! * @param field class name that we use to serach in class2classmap ! * @param class2classmap a map from classname to classmappings ! * @return String return either name or the proxy name of the classmap ! */ static protected String getTrueTypeName(Field field, Map class2classmap) { String name = --- 20,30 ---- /** ! * Returns the true name for the given class name. By true name is ! * that it will return the Proxy for the class name if the class was ! * defined with a proxy attribute. ! * @param field class name that we use to serach in class2classmap ! * @param class2classmap a map from classname to classmappings ! * @return String return either name or the proxy name of the classmap ! */ static protected String getTrueTypeName(Field field, Map class2classmap) { String name = *************** *** 58,69 **** /** ! * Returns the last part of type if it is in the set of imports. ! * e.g. java.util.Date would become Date, if imports contains ! * java.util.Date. ! * ! * @param type ! * @param imports ! * @return String ! */ protected String shortenType(String type, TreeSet imports) { if( imports.contains(type) ) { --- 55,66 ---- /** ! * Returns the last part of type if it is in the set of imports. ! * e.g. java.util.Date would become Date, if imports contains ! * java.util.Date. ! * ! * @param type ! * @param imports ! * @return String ! */ protected String shortenType(String type, TreeSet imports) { if( imports.contains(type) ) { *************** *** 81,89 **** /** ! * Convert string into something that can be rendered nicely into a javadoc ! * comment. ! * Prefix each line with a star ('*'). ! * @param string ! */ protected String toJavaDoc(String string, int indent) { StringBuffer result = new StringBuffer(); --- 78,86 ---- /** ! * Convert string into something that can be rendered nicely into a javadoc ! * comment. ! * Prefix each line with a star ('*'). ! * @param string ! */ protected String toJavaDoc(String string, int indent) { StringBuffer result = new StringBuffer(); Index: BasicRenderer.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2java/BasicRenderer.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** BasicRenderer.java 25 Mar 2003 07:08:37 -0000 1.12 --- BasicRenderer.java 29 Mar 2003 04:08:49 -0000 1.13 *************** *** 9,17 **** import java.util.List; import java.util.Map; - import java.util.TreeSet; import net.sf.hibernate.util.StringHelper; - import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; --- 9,15 ---- |