Commits

Anonymous committed ea826eb

Fixed bug with interface patch

git-svn-id: http://svn.opensymphony.com/svn/propertyset/trunk@128bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

Comments (0)

Files changed (2)

src/java/com/opensymphony/module/propertyset/hibernate/HibernatePropertySetDAOUtils.java

     //~ Methods ////////////////////////////////////////////////////////////////
 
     public static PropertySetItem getItem(Session session, String entityName, Long entityId, String key) throws HibernateException {
-        return (PropertySetItem) session.load(PropertySetItem.class, new PropertySetItemImpl(entityName, entityId.longValue(), key));
+        return (PropertySetItem) session.load(PropertySetItemImpl.class, new PropertySetItemImpl(entityName, entityId.longValue(), key));
     }
 
     /**

src/test/com/opensymphony/module/propertyset/hibernate/HibernatePropertySetTest.java

 
 import com.opensymphony.module.propertyset.BasePropertySetTest;
 import com.opensymphony.module.propertyset.DatabaseHelper;
-import net.sf.hibernate.SessionFactory;
 import net.sf.hibernate.cfg.Configuration;
 
 
 
     public void setUp() throws Exception {
         //DatabaseHelper.exportSchemaForJDBC();
-      DatabaseHelper.createDatabase("");
-      Configuration config = DatabaseHelper.createHibernateConfiguration();
+        DatabaseHelper.createDatabase("");
+        Configuration config = DatabaseHelper.createHibernateConfiguration();
         DefaultHibernateConfigurationProvider configurationProvider = new DefaultHibernateConfigurationProvider();
         configurationProvider.setConfiguration(config);
         configurationProvider.setSessionFactory(config.buildSessionFactory());