[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...

Christian Bauer christian at hibernate.org
Fri Aug 31 13:54:37 EDT 2007


  User: cbauer  
  Date: 07/08/31 13:54:37

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/model 
                        DatabaseObjects.hbm.xml
  Log:
  Document deletion did not remove feed entry correctly
  
  Revision  Changes    Path
  1.6       +2 -2      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/DatabaseObjects.hbm.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DatabaseObjects.hbm.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/DatabaseObjects.hbm.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- DatabaseObjects.hbm.xml	30 Aug 2007 16:50:58 -0000	1.5
  +++ DatabaseObjects.hbm.xml	31 Aug 2007 17:54:37 -0000	1.6
  @@ -18,7 +18,7 @@
       <database-object>
           <create>
               alter table FEEDENTRY drop constraint FK_FEEDENTRY_DOCUMENT_ID;
  -            alter table FEEDENTRY add constraint FK_FEEDENTRY_DOCUMENT_ID foreign key (DOCUMENT_ID) references NODE on delete set null;
  +            alter table FEEDENTRY add constraint FK_FEEDENTRY_DOCUMENT_ID foreign key (DOCUMENT_ID) references NODE on delete cascade;
           </create>
           <drop></drop>
           <dialect-scope name="org.hibernate.dialect.HSQLDialect"/>
  @@ -181,7 +181,7 @@
       <database-object>
           <create>
               alter table FEEDENTRY
  -                add constraint FK_FEEDENTRY_DOCUMENT_ID foreign key (DOCUMENT_ID) references NODE (NODE_ID) on delete set null;
  +                add constraint FK_FEEDENTRY_DOCUMENT_ID foreign key (DOCUMENT_ID) references NODE (NODE_ID) on delete cascade;
           </create><drop></drop><dialect-scope name="org.hibernate.dialect.MySQL5InnoDBDialect"/>
       </database-object>
   
  
  
  



More information about the jboss-cvs-commits mailing list