From: <one...@us...> - 2003-04-06 14:20:16
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/codegen In directory sc8-pr-cvs1:/tmp/cvs-serv21331/codegen Modified Files: ClassMapping.java Log Message: applied max andersen's timestamp patch Index: ClassMapping.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/codegen/ClassMapping.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** ClassMapping.java 30 Dec 2002 11:55:09 -0000 1.23 --- ClassMapping.java 6 Apr 2003 14:20:11 -0000 1.24 *************** *** 131,135 **** type = property.getAttributeValue("class"); } ! if ( type == null || type.trim().equals("") ) { System.out.println("property \"" + name + "\" in class " + getName() + " is missing a type attribute"); continue; --- 131,138 ---- type = property.getAttributeValue("class"); } ! if ("timestamp".equals(property.getName())){ ! type = "java.util.Date"; ! } ! if ( type == null || type.trim().equals("") ) { System.out.println("property \"" + name + "\" in class " + getName() + " is missing a type attribute"); continue; |