Hi,
I am trying to write a map file for a schema which has enumerations. I
do the following:
<class name="com.listenpoint.platform.DefaultGroupTypeDefinition">
<map-to xml="groupDefinition"/>
<field name="type"
type="com.listenpoint.platform.types.GroupType">
<bind-xml name="type" node="element"/>
</field>
<field name="allowSubGroups">
<xml node="element"/>
</field>
</class>
And get the following error:
java.lang.IllegalStateException: Java schema change: Class
com.listenpoint.platform.types.GroupType can no longer be constructed:
com.listenpoint.platform.types.GroupType{file: [not available]; line:
12; column: 9}
The entire map file:
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor Mapping DTD Version
1.0//EN" "http://castor.exolab.org/mapping.dtd">
<mapping>
<class name="com.listenpoint.platform.Group">
<map-to xml="group"/>
<field name="groupID">
<xml node="attribute"/>
</field>
<field name="GroupHeader">
<bind-xml name="groupHeader"/>
</field>
<field name="GroupDefinition">
<bind-xml name="groupDefinition"/>
</field>
<field name="GroupData">
<bind-xml name="groupData"/>
</field>
</class>
<class name="com.listenpoint.platform.Header">
<map-to xml="groupHeader"/>
<field name="version">
<xml node="element"/>
</field>
<field name="locale">
<xml node="element"/>
</field>
<field name="licensee">
<xml node="element"/>
</field>
<field name="createdBy">
<xml node="element"/>
</field>
<field name="creationDate">
<xml node="element"/>
</field>
</class>
<class name="com.listenpoint.platform.DefaultGroupTypeDefinition">
<map-to xml="groupDefinition"/>
<field name="type" type="com.listenpoint.platform.types.GroupType">
<bind-xml name="type" node="element"/>
</field>
<field name="allowSubGroups">
<xml node="element"/>
</field>
</class>
<!--class name="com.listenpoint.platform.types.GroupType">
<map-to xml="type"/>
<field name="type">
<xml node="element"/>
</field>
</class-->
<class name="com.listenpoint.platform.GroupData">
<map-to xml="groupData"/>
<field name="name">
<xml node="element"/>
</field>
<field name="description">
<xml node="element"/>
</field>
<field name="parentID">
<xml node="element"/>
</field>
<field name="MemberList">
<bind-xml name="memberList"/>
</field>
<field name="AttributeValue">
<bind-xml name="AttributeValue"/>
</field>
</class>
<class name="com.listenpoint.platform.MemberList">
<map-to xml="memberList"/>
<field name="MemberItem" type="com.listenpoint.platform.GroupMember">
<bind-xml name="memberItem"/>
</field>
<field name="MemberGroup" type="com.listenpoint.platform.GroupMember">
<bind-xml name="memberGroup"/>
</field>
</class>
<class name="com.listenpoint.platform.GroupMember">
<map-to xml="GroupMember"/>
<!--map-to xml="memberGroup"/-->
<field name="parentID">
<xml node="element"/>
</field>
<field name="memberID">
<xml node="element"/>
</field>
<field name="memberType">
<xml node="element"/>
</field>
<field name="name">
<xml node="element"/>
</field>
<field name="description">
<xml node="element"/>
</field>
</class>
<!--class name="com.listenpoint.platform.GroupMember">
<map-to xml="memberGroup"/>
<field name="parentID">
<xml node="element"/>
</field>
<field name="memberID">
<xml node="element"/>
</field>
<field name="memberType">
<xml node="element"/>
</field>
<field name="name">
<xml node="element"/>
</field>
<field name="description">
<xml node="element"/>
</field>
</class-->
<class name="com.listenpoint.platform.AttributeValue">
<map-to xml="AttributeValue"/>
<field name="AttributeID">
<xml node="element"/>
</field>
<field name="Value">
<xml node="element"/>
</field>
</class>
</mapping>
Can you tell me what I am missing?
Thanks in advance.
Ramesh.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev