merged 1.1 branch into head
[mir.git] / source / org / codecoop / mir / core / dao / hibernate / CategoryDAO.java
diff --git a/source/org/codecoop/mir/core/dao/hibernate/CategoryDAO.java b/source/org/codecoop/mir/core/dao/hibernate/CategoryDAO.java
deleted file mode 100755 (executable)
index e454003..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Created on 28.08.2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.codecoop.mir.core.dao.hibernate;
-
-import net.sf.hibernate.Hibernate;
-
-import org.codecoop.mir.core.dao.DatabaseFailure;
-import org.codecoop.mir.core.dao.ICategoryDAO;
-import org.codecoop.mir.core.model.Category;
-
-/**
- * CategoryDAO
- * @author idefix
- * $Id: CategoryDAO.java,v 1.1 2004/11/06 16:20:48 idfx Exp $
- */
-public class CategoryDAO extends AbstractDAO implements ICategoryDAO {
-
-  /* (non-Javadoc)
-   * @see org.codecoop.mir.core.dao.hibernate.AbstractDAO#getReferenceClass()
-   */
-  protected Class getReferenceClass() {
-    return Category.class;
-  }
-
-  /* (non-Javadoc)
-   * @see org.codecoop.mir.core.dao.hibernate.AbstractDAO#initializeCollections(java.lang.Object)
-   */
-  protected void initializeCollections(Object o) throws DatabaseFailure {
-    if(o instanceof Category){
-      Category c = (Category)o;
-      try {
-        Hibernate.initialize(c.getArticles());
-        Hibernate.initialize(c.getChildCategories());
-      } catch (Throwable e) {
-        throw new DatabaseFailure(e);
-      }
-    }
-  }
-
-}