#
tigermain
Hi guys,
I've been looking at the ContentItem implementation in the SVN repo and have extended the StaticHTML module to implement it (in a similar way to the FileResource does). This has been successful with minimum work using the source provided in the repo. However I have tried as best as possible to merge the code with our own in house solution (based on cuyahoga) and despite various errors we have resolved I am hitting a wall with the StaticHTML ContentItem implementation.
My code has been duplicated exactly the only differences are my namespaces etc but I am consistenly getting the following errors. This one on Application start (which I think is the culprit looking at the Nhibernate Anaylser results):
And this is everytime after initial build
Below is a copy of the StaticHTML.hbm.xml file. The Module file inherits ContentItem and only has one additional property of Content. All the database tables have been altered as appropriate.
I've been looking at the ContentItem implementation in the SVN repo and have extended the StaticHTML module to implement it (in a similar way to the FileResource does). This has been successful with minimum work using the source provided in the repo. However I have tried as best as possible to merge the code with our own in house solution (based on cuyahoga) and despite various errors we have resolved I am hitting a wall with the StaticHTML ContentItem implementation.
My code has been duplicated exactly the only differences are my namespaces etc but I am consistenly getting the following errors. This one on Application start (which I think is the culprit looking at the Nhibernate Anaylser results):
These classes extend unmapped classes:
Cuyahoga.Modules.StaticHtml.StaticHtmlContent, Cuyahoga.Modules extends Cuyahoga.Core.Domain.ContentItem, Cuyahoga.Core
And this is everytime after initial build
in expected: s [from StaticHtmlContent s where s.Section.Id = ? ]
Below is a copy of the StaticHTML.hbm.xml file. The Module file inherits ContentItem and only has one additional property of Content. All the database tables have been altered as appropriate.
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<joined-subclass name="Cuyahoga.Modules.StaticHtml.StaticHtmlContent, Cuyahoga.Modules" extends="Cuyahoga.Core.Domain.ContentItem, Cuyahoga.Core" table="cm_statichtml"<
<key column="statichtmlid" />
<property name="Content" column="content" type="StringClob" />
</joined-subclass>
</hibernate-mapping>