From: <leg...@at...> - 2003-08-22 20:21:32
|
The following comment has been added to this issue: Author: Eric Pugh Created: Fri, 22 Aug 2003 3:20 PM Body: apparently there is some confusion on this bug. Whether the interface HibernateService should extend Component or not.. I am going to write Neeme and the Avalon team and see what's up.. I always though you did need to extend a "work" interface. --------------------------------------------------------------------- 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/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |