[hibernate-commits] Hibernate SVN: r14087 - branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Oct 16 17:32:51 EDT 2007


Author: dan.j.allen
Date: 2007-10-16 17:32:51 -0400 (Tue, 16 Oct 2007)
New Revision: 14087

Modified:
   branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java
Log:
HBX-962 - the JPA specification clearly states "The Temporal annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar." Clearly, it cannot be excluded from timestamp despite the fact that it is the default for Hibernate. 


Modified: branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java
===================================================================
--- branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java	2007-10-16 21:09:37 UTC (rev 14086)
+++ branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java	2007-10-16 21:32:51 UTC (rev 14087)
@@ -323,7 +323,7 @@
 			if("date".equals(typeName) || "java.sql.Date".equals(typeName)) {
 				buildTemporalAnnotation( annotations, "DATE" );
 			} else if ("timestamp".equals(typeName) || "java.sql.Timestamp".equals(typeName)) {
-				//buildTemporalAnnotation( annotations, "TIMESTAMP" ); ..the default so don't generate
+				buildTemporalAnnotation( annotations, "TIMESTAMP" );
 			} else if ("time".equals(typeName) || "java.sql.Time".equals(typeName)) {
 				buildTemporalAnnotation(annotations, "TIME");
 			} //TODO: calendar etc. ?
@@ -978,4 +978,4 @@
 	}	
 	
 }
- 
\ No newline at end of file
+ 




More information about the hibernate-commits mailing list