KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > util > workflow > hibernate > InfoglueHibernatePropertySetDAOUtils


1 package org.infoglue.cms.util.workflow.hibernate;
2
3 import net.sf.hibernate.HibernateException;
4 import net.sf.hibernate.Session;
5
6 import com.opensymphony.module.propertyset.hibernate.HibernatePropertySetDAOUtils;
7 import com.opensymphony.module.propertyset.hibernate.PropertySetItem;
8
9
10 /**
11  * Quickfix
12  */

13 public class InfoglueHibernatePropertySetDAOUtils extends HibernatePropertySetDAOUtils {
14     /**
15      *
16      */

17     public static PropertySetItem getItem(Session session, String JavaDoc entityName, Long JavaDoc entityId, String JavaDoc key) throws HibernateException {
18         return (PropertySetItem) session.load(InfogluePropertySetItemImpl.class, new InfogluePropertySetItemImpl(entityName, entityId.longValue(), key));
19     }
20 }
21
Popular Tags