CVS: xdoclet/modules/hibernate/src/xdoclet/modules/hibernate HibernateTagsHandler.java,1.42,1.43

Paul Galbraith <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Update of /cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22288/modules/hibernate/src/xdoclet/modules/hibernate

Modified Files:
	HibernateTagsHandler.java 
Log Message:
[XDT-414] Allow composite-id composed of multiple class member properties

Index: HibernateTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/HibernateTagsHandler.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** HibernateTagsHandler.java	1 Jun 2005 16:08:10 -0000	1.42
--- HibernateTagsHandler.java	26 Aug 2005 00:34:19 -0000	1.43
***************
*** 669,677 ****
  
          // bomb politely if no ID method could be found
          if (method == null) {
!             throw new XDocletException(
!                 Translator.getString(XDocletModulesHibernateMessages.class,
!                 XDocletModulesHibernateMessages.NO_ID_PROPERTY,
!                 new String[]{getCurrentClass().getQualifiedName()}));
          }
  
--- 669,681 ----
  
          // bomb politely if no ID method could be found
+         //   -- disabled, user should now be OK with composite-id or id,
+         //      let Hibernate handle the validation, we just need to generate
+         //      a well-formed mapping file!  [PG]
          if (method == null) {
!             return;
!             //    throw new XDocletException(
!             //        Translator.getString(XDocletModulesHibernateMessages.class,
!             //        XDocletModulesHibernateMessages.NO_ID_PROPERTY,
!             //        new String[]{getCurrentClass().getQualifiedName()}));
          }
  



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.