Hi,

A project I just joined is using the Oracle 10g new column type, 
XMLType, which holds XML data.  As I understand it, they got read/write 
to work through Hibernate by creating an intermediary class.

Their hand written mapping file contains this directive:

   <class name="DocTypeDefinition">
     :
     <property name="docTypeDefinitionXml"
       type="XmlTypeToDocument">
       <column name="DOC_TYPE_DEFINITION_XML" />
     </property>
     :
   </class>

where

public class XmlTypeToDocument implements Serializable

-and-

public class DocTypeDefinition
{
   public Document docTypeDefinitionXml()...
}

I'm trying to use Hibernate XDoclet tags to regenerate the mapping file 
and run into an issue where

/**
  * @hibernate.property column="DOC_TYPE_DEFINITION_XML" 
type="XmlTypeToDocument"
  */
public Document docTypeDefinitionXml()

maps to

   <class name="DocTypeDefinition">
     :
     <property name="docTypeDefinitionXml"
       type="org.w3c.dom.Document">                <------ problem
       <column name="DOC_TYPE_DEFINITION_XML" />
     </property>
     :
   </class>


The method return type overrides my XDoclet type directive.  How do I 
force the use of my original class instead of the method return type?

-or-

is the initial Hibernate file flawed and I ought to do something else 
(even though it works).

Thanks in advance,

-Fred

-- 
Fred Muhlenberg
High Performance Technologies, Inc

'One thing at a time and that done well'



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to