Message:
The following issue has been re-assigned.
Assignee: Eric Pugh (mailto:ep...@up...)
Assigner: Gavin King (mailto:ga...@in...)
Date: Fri, 20 Jun 2003 11:58 PM
Comment:
yours :)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-140
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-140
Summary: Changed Avalon component to work with cocoon 2.0.4
Type: Patch
Status: Assigned
Priority: Minor
Project: Hibernate2
Components:
toolset
Assignee: Eric Pugh
Reporter: Scott Payne
Created: Wed, 18 Jun 2003 12:47 AM
Updated: Fri, 20 Jun 2003 11:58 PM
Description:
Simple patch so that the CocoonComponentManager won't throw a ClassCastException when using the HibernateService. It seemed to try to cast it to a Component (fair enough) and this fixed it.
Also a change to the DTD used in the test case, to use the hibernate 2 DTD.
diff -riuwBb -x CVS avalon/src/java/net/sf/hibernate/avalon/HibernateService.java avalon-patched/src/java/net/sf/hibernate/avalon/HibernateService.java
--- avalon/src/java/net/sf/hibernate/avalon/HibernateService.java 2003-06-18 15:37:40.000000000 +1000
+++ avalon-patched/src/java/net/sf/hibernate/avalon/HibernateService.java 2003-06-18 15:21:00.000000000 +1000
@@ -11,7 +11,7 @@
* @author <a href="mailto:ne...@ap...">Neeme Praks</a>
* @version $Id: HibernateService.java,v 1.2 2003/06/04 10:44:25 nemecec Exp $
*/
-public interface HibernateService {
+public interface HibernateService extends org.apache.avalon.framework.component.Component {
public static final String ROLE = HibernateService.class.getName();
diff -riuwBb -x CVS avalon/src/test/net/sf/hibernate/avalon/Labor.hbm.xml avalon-patched/src/test/net/sf/hibernate/avalon/Labor.hbm.xml
--- avalon/src/test/net/sf/hibernate/avalon/Labor.hbm.xml 2003-06-18 15:37:50.000000000 +1000
+++ avalon-patched/src/test/net/sf/hibernate/avalon/Labor.hbm.xml 2003-06-18 15:25:31.000000000 +1000
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping.dtd">
+ "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="net.sf.hibernate.avalon.Labor" table="LABOR" >
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|