Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » no implementation classes of "java.lang.Object" have been found!
no implementation classes of "java.lang.Object" have been found! [message #87365] Mon, 25 June 2007 22:11 Go to next message
Eclipse UserFriend
Originally posted by: juliayip.us.ibm.clom

Hi Martin,

I'm using jpox 1.1.8 with DB2 v9

I'm getting this error when I try to create the schema for a xsd. Is it
saying that it can't find some jdk classes? That I need to add it to the
classpath?

Julia


Exception in thread "main" javax.jdo.JDOUserException: Field
" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
is declared as a reference type (interface/Object) but no implementation
classes of "java.lang.Object" have been found!
at
org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef erenceField(MetaDataUtils.java:441)
at
org.jpox.metadata.AbstractPropertyMetaData.setRelation(Abstr actPropertyMetaData.java:1959)
at
org.jpox.metadata.AbstractPropertyMetaData.getRelatedFieldMe taData(AbstractPropertyMetaData.java:2147)
at
org.jpox.store.rdbms.sqlidentifier.JPOXIdentifierFactory.new DatastoreContainerIdentifier(JPOXIdentifierFactory.java:132)
at
org.jpox.store.rdbms.RDBMSManager.getTableIdentifier(RDBMSMa nager.java:2315)
at org.jpox.store.rdbms.RDBMSManager.access$6100(RDBMSManager.j ava:165)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addJoinTableFor Container(RDBMSManager.java:3368)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.access$700(RDBM SManager.java:2470)
at
org.jpox.store.rdbms.RDBMSManager.newJoinDatastoreContainerO bject(RDBMSManager.java:1033)
at
org.jpox.store.mapping.AbstractContainerMapping.initialize(A bstractContainerMapping.java:102)
at
org.jpox.store.mapping.MappingFactory.createMapping(MappingF actory.java:88)
at
org.jpox.store.mapping.AbstractMappingManager.getMapping(Abs tractMappingManager.java:231)
at
org.jpox.store.rdbms.table.ClassTable.addFieldMetaData(Class Table.java:458)
at org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable .java:397)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClass Tables(RDBMSManager.java:2966)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesA ndValidate(RDBMSManager.java:3311)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManage r.java:2554)
at
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RD BMSManager.java:2406)
at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.ja va:821)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.createSchema(JpoxDa taStore.java:468)
at
org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)
at com.ibm.isclite.wccm.clientevent.Tutorial2.main(Tutorial2.ja va:99)


The section of the jdo for hte above
" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
looks like this:

<class
name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
requires-extent="true" persistence-modifier="persistence-capable"
detachable="true" identity-type="datastore">
<implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
<inheritance strategy="superclass-table">
<discriminator value="PortletDefinitionRef"/>
</inheritance>
<version strategy="version-number" column="e_version"/>
<field name="supportedPublishingEvent" persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
</field>
<field name="supportedSubscribedEvent" persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
</field>
<field name="portletDefinitionRef" persistence-modifier="persistent"
null-value="none"/>
</class>
Re: no implementation classes of "java.lang.Object" have been found! [message #87380 is a reply to message #87365] Tue, 26 June 2007 07:42 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Teneo can't find the implementation class for the supportedPublishingEvent efeature (or it's type is
really java.lang.Object). When you check the generated java code for this efeature is it's type then
also java.lang.Object?
Can you post the ecore of this efeature?

gr. Martin

Julia wrote:
> Hi Martin,
>
> I'm using jpox 1.1.8 with DB2 v9
>
> I'm getting this error when I try to create the schema for a xsd. Is it
> saying that it can't find some jdk classes? That I need to add it to the
> classpath?
>
> Julia
>
>
> Exception in thread "main" javax.jdo.JDOUserException: Field
> " com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
> is declared as a reference type (interface/Object) but no implementation
> classes of "java.lang.Object" have been found!
> at
> org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef erenceField(MetaDataUtils.java:441)
>
> at
> org.jpox.metadata.AbstractPropertyMetaData.setRelation(Abstr actPropertyMetaData.java:1959)
>
> at
> org.jpox.metadata.AbstractPropertyMetaData.getRelatedFieldMe taData(AbstractPropertyMetaData.java:2147)
>
> at
> org.jpox.store.rdbms.sqlidentifier.JPOXIdentifierFactory.new DatastoreContainerIdentifier(JPOXIdentifierFactory.java:132)
>
> at
> org.jpox.store.rdbms.RDBMSManager.getTableIdentifier(RDBMSMa nager.java:2315)
>
> at org.jpox.store.rdbms.RDBMSManager.access$6100(RDBMSManager.j ava:165)
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.addJoinTableFor Container(RDBMSManager.java:3368)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.access$700(RDBM SManager.java:2470)
>
> at
> org.jpox.store.rdbms.RDBMSManager.newJoinDatastoreContainerO bject(RDBMSManager.java:1033)
>
> at
> org.jpox.store.mapping.AbstractContainerMapping.initialize(A bstractContainerMapping.java:102)
>
> at
> org.jpox.store.mapping.MappingFactory.createMapping(MappingF actory.java:88)
> at
> org.jpox.store.mapping.AbstractMappingManager.getMapping(Abs tractMappingManager.java:231)
>
> at
> org.jpox.store.rdbms.table.ClassTable.addFieldMetaData(Class Table.java:458)
> at
> org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable .java:397)
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClass Tables(RDBMSManager.java:2966)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesA ndValidate(RDBMSManager.java:3311)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManage r.java:2554)
> at
> org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RD BMSManager.java:2406)
>
> at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.ja va:821)
> at
> org.eclipse.emf.teneo.jpox.JpoxDataStore.createSchema(JpoxDa taStore.java:468)
>
> at
> org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)
> at com.ibm.isclite.wccm.clientevent.Tutorial2.main(Tutorial2.ja va:99)
>
>
> The section of the jdo for hte above
> " com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
> looks like this:
>
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox" key="cache-lazy-loading"
> value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox" key="cache-lazy-loading"
> value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef"
> persistence-modifier="persistent" null-value="none"/>
> </class>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #87413 is a reply to message #87380] Tue, 26 June 2007 13:01 Go to previous messageGo to next message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

This is the generated model code that point of error
protected EList<Object> supportedPublishingEvent = null;

public EList<Object> getSupportedPublishingEvent() {
if (supportedPublishingEvent == null) {
supportedPublishingEvent = new EDataTypeEList<Object>(Object.class,
this,
ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
}
return supportedPublishingEvent;
}

This the section in the jdo:
<class
name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
requires-extent="true" persistence-modifier="persistence-capable"
detachable="true" identity-type="datastore">
<implements
name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
<inheritance strategy="superclass-table">
<discriminator value="PortletDefinitionRef"/>
</inheritance>
<version strategy="version-number" column="e_version"/>
<field name="supportedPublishingEvent"
persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
</field>
<field name="supportedSubscribedEvent"
persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
</field>
<field name="portletDefinitionRef" persistence-modifier="persistent"
null-value="none"/>
</class>


This is the ecore
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"

nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
nsPrefix="clientevent">
<eAnnotations source="http://www.w3.org/XML/1998/namespace">
<details key="lang" value="en"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This is the root element and
holds list of Client Events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="ClientEvents"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference"
name="paramDefinition" upperBound="-1"
eType="#//ParamDefinition" containment="true"
resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The definition of one or
client parameters"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="param-definition"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="eventDefinition" upperBound="-1"
eType="#//EventDefinition" containment="true"
resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The definition of client side
events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="event-definition"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="elementSupportingEventsGroup"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="group"/>
<details key="name" value="element-supporting-events:group"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="elementSupportingEvents"
upperBound="-1" eType="#//Elements" changeable="false"
volatile="true" transient="true"
derived="true" containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="element-supporting-events"/>
<details key="namespace" value="##targetNamespace"/>
<details key="group" value="element-supporting-events:group"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
unique="false" upperBound="-1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementWildcard"/>
<details key="name" value=":mixed"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap"
upperBound="-1"
eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xmlns:prefix"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="xSISchemaLocation" upperBound="-1"
eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xsi:schemaLocation"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="elementSupportingEvents"
upperBound="-2" eType="#//Elements" changeable="false"
volatile="true" transient="true"
derived="true" containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="element-supporting-events"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="ibmPortalClientevent" upperBound="-2"
eType="#//ClientEvents" volatile="true" transient="true"
derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="ibm-portal-clientevent"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="portletDefinitionRef" upperBound="-2"
eType="#//PortletDefinitionRef" volatile="true" transient="true"
derived="true"
containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="wire target definition for
specifying portlet as an element supporting events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="portlet-definition-ref"/>
<details key="namespace" value="##targetNamespace"/>
<details key="affiliation" value="element-supporting-events"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This is an abstract type that
can never be used directly; actual XML documents can only contain derived
types"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="elements"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The event-definitionType is used
to declare events the portlet can either receive or emit. The name must be
unique and must be the one the portlet is using in its code for
referencing this event."/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="EventDefinition"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
unique="false" upperBound="-1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="alias"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="paramDefinitionRef" unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//IDREF">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="paramDefinitionRef"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Param">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value=" Add details"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Param"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Boolean"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="option"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="details"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="ParamDefinition"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="param"
lowerBound="1" upperBound="-1"
eType="#//Param" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="param"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//ID"
iD="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="uniqueName"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
eSuperTypes="#//Elements">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Portlet that supports the
event"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="PortletDefinitionRef"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="supportedPublishingEvent"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="supported-publishing-event"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="supportedSubscribedEvent"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="supported-subscribed-event"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="portletDefinitionRef" unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="portletDefinitionRef"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
Re: no implementation classes of "java.lang.Object" have been found! [message #87431 is a reply to message #87413] Tue, 26 June 2007 13:22 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Teneo won't be able to discover which type the supportedPublishingEvent is as the generated java
code also uses java.lang.Doc. The only way to solve this is to make the type in the schema more
specific (if you control the schema). If you don't control the schema then maybe this would help?:
http://www.jpox.org/docs/1_1/objects.html

Following these guidelines, can you manually change the mapping? If this works then maybe I can add
it to Teneo using annotations.

gr. Martin

Julia wrote:
> Hi Martin,
>
> This is the generated model code that point of error
> protected EList<Object> supportedPublishingEvent = null;
>
> public EList<Object> getSupportedPublishingEvent() {
> if (supportedPublishingEvent == null) {
> supportedPublishingEvent = new
> EDataTypeEList<Object>(Object.class, this,
> ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
> }
> return supportedPublishingEvent;
> }
>
> This the section in the jdo:
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements
> name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox"
> key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order
> column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox"
> key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order
> column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef"
> persistence-modifier="persistent" null-value="none"/>
> </class>
>
>
> This is the ecore
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"
>
> nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
>
> nsPrefix="clientevent">
> <eAnnotations source="http://www.w3.org/XML/1998/namespace">
> <details key="lang" value="en"/>
> </eAnnotations>
> <eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="This is the root element and
> holds list of Client Events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="ClientEvents"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="paramDefinition" upperBound="-1"
> eType="#//ParamDefinition" containment="true"
> resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The definition of one or
> client parameters"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="param-definition"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="eventDefinition" upperBound="-1"
> eType="#//EventDefinition" containment="true"
> resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The definition of client side
> events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="event-definition"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="elementSupportingEventsGroup"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="group"/>
> <details key="name" value="element-supporting-events:group"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="elementSupportingEvents"
> upperBound="-1" eType="#//Elements" changeable="false"
> volatile="true" transient="true"
> derived="true" containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="element-supporting-events"/>
> <details key="namespace" value="##targetNamespace"/>
> <details key="group" value="element-supporting-events:group"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value=""/>
> <details key="kind" value="mixed"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
> unique="false" upperBound="-1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="elementWildcard"/>
> <details key="name" value=":mixed"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="xMLNSPrefixMap" upperBound="-1"
> eType="ecore:EClass
> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
> transient="true" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="xmlns:prefix"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="xSISchemaLocation" upperBound="-1"
> eType="ecore:EClass
> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
> transient="true" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="xsi:schemaLocation"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="elementSupportingEvents"
> upperBound="-2" eType="#//Elements" changeable="false"
> volatile="true" transient="true"
> derived="true" containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="element-supporting-events"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="ibmPortalClientevent" upperBound="-2"
> eType="#//ClientEvents" volatile="true" transient="true"
> derived="true" containment="true"
> resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="ibm-portal-clientevent"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="portletDefinitionRef" upperBound="-2"
> eType="#//PortletDefinitionRef" volatile="true" transient="true"
> derived="true"
> containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="wire target definition for
> specifying portlet as an element supporting events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="portlet-definition-ref"/>
> <details key="namespace" value="##targetNamespace"/>
> <details key="affiliation" value="element-supporting-events"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="This is an abstract type that
> can never be used directly; actual XML documents can only contain
> derived types"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="elements"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The event-definitionType is
> used to declare events the portlet can either receive or emit. The name
> must be unique and must be the one the portlet is using in its code for
> referencing this event."/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="EventDefinition"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
> unique="false" upperBound="-1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="alias"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="paramDefinitionRef" unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//IDREF">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="paramDefinitionRef"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Param">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value=" Add details"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Param"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
> unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//Boolean"
> unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="option"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="details"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="ParamDefinition"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="param"
> lowerBound="1" upperBound="-1"
> eType="#//Param" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="param"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
> unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//ID"
> iD="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="uniqueName"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
> eSuperTypes="#//Elements">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Portlet that supports the
> event"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="PortletDefinitionRef"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="supportedPublishingEvent"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="supported-publishing-event"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="supportedSubscribedEvent"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="supported-subscribed-event"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="portletDefinitionRef" unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="portletDefinitionRef"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #87445 is a reply to message #87431] Tue, 26 June 2007 13:23 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I made a small typo, here is the correct post:

Hi Julia,
Teneo won't be able to discover which type the supportedPublishingEvent is as the generated java
code also uses java.lang.Object. The only way to solve this is to make the type in the schema more
specific (if you control the schema). If you don't control the schema then maybe this would help?:
http://www.jpox.org/docs/1_1/objects.html

Following these guidelines, can you manually change the mapping? If this works then maybe I can add
it to Teneo using annotations.

gr. Martin

Martin Taal wrote:
> Hi Julia,
> Teneo won't be able to discover which type the supportedPublishingEvent
> is as the generated java code also uses java.lang.Doc. The only way to
> solve this is to make the type in the schema more specific (if you
> control the schema). If you don't control the schema then maybe this
> would help?:
> http://www.jpox.org/docs/1_1/objects.html
>
> Following these guidelines, can you manually change the mapping? If this
> works then maybe I can add it to Teneo using annotations.
>
> gr. Martin
>
> Julia wrote:
>> Hi Martin,
>>
>> This is the generated model code that point of error
>> protected EList<Object> supportedPublishingEvent = null;
>>
>> public EList<Object> getSupportedPublishingEvent() {
>> if (supportedPublishingEvent == null) {
>> supportedPublishingEvent = new
>> EDataTypeEList<Object>(Object.class, this,
>> ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
>> }
>> return supportedPublishingEvent;
>> }
>>
>> This the section in the jdo:
>> <class
>> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
>> requires-extent="true" persistence-modifier="persistence-capable"
>> detachable="true" identity-type="datastore">
>> <implements
>> name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
>> <inheritance strategy="superclass-table">
>> <discriminator value="PortletDefinitionRef"/>
>> </inheritance>
>> <version strategy="version-number" column="e_version"/>
>> <field name="supportedPublishingEvent"
>> persistence-modifier="persistent">
>> <collection element-type="java.lang.Object">
>> <extension vendor-name="jpox"
>> key="cache-lazy-loading" value="true"/>
>> </collection>
>> <join/>
>> <order
>> column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
>> </field>
>> <field name="supportedSubscribedEvent"
>> persistence-modifier="persistent">
>> <collection element-type="java.lang.Object">
>> <extension vendor-name="jpox"
>> key="cache-lazy-loading" value="true"/>
>> </collection>
>> <join/>
>> <order
>> column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
>> </field>
>> <field name="portletDefinitionRef"
>> persistence-modifier="persistent" null-value="none"/>
>> </class>
>>
>>
>> This is the ecore
>> <?xml version="1.0" encoding="UTF-8"?>
>> <ecore:EPackage xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"
>>
>> nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
>>
>> nsPrefix="clientevent">
>> <eAnnotations source="http://www.w3.org/XML/1998/namespace">
>> <details key="lang" value="en"/>
>> </eAnnotations>
>> <eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="This is the root element and
>> holds list of Client Events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="ClientEvents"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="paramDefinition" upperBound="-1"
>> eType="#//ParamDefinition" containment="true"
>> resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The definition of one or
>> client parameters"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="param-definition"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="eventDefinition" upperBound="-1"
>> eType="#//EventDefinition" containment="true"
>> resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The definition of client
>> side events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="event-definition"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="elementSupportingEventsGroup"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="group"/>
>> <details key="name" value="element-supporting-events:group"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="elementSupportingEvents"
>> upperBound="-1" eType="#//Elements" changeable="false"
>> volatile="true" transient="true"
>> derived="true" containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="element-supporting-events"/>
>> <details key="namespace" value="##targetNamespace"/>
>> <details key="group" value="element-supporting-events:group"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value=""/>
>> <details key="kind" value="mixed"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
>> unique="false" upperBound="-1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="elementWildcard"/>
>> <details key="name" value=":mixed"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="xMLNSPrefixMap" upperBound="-1"
>> eType="ecore:EClass
>> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
>> transient="true" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="xmlns:prefix"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="xSISchemaLocation" upperBound="-1"
>> eType="ecore:EClass
>> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
>> transient="true" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="xsi:schemaLocation"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="elementSupportingEvents"
>> upperBound="-2" eType="#//Elements" changeable="false"
>> volatile="true" transient="true"
>> derived="true" containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="element-supporting-events"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="ibmPortalClientevent" upperBound="-2"
>> eType="#//ClientEvents" volatile="true" transient="true"
>> derived="true" containment="true"
>> resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="ibm-portal-clientevent"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="portletDefinitionRef" upperBound="-2"
>> eType="#//PortletDefinitionRef" volatile="true"
>> transient="true" derived="true"
>> containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="wire target definition for
>> specifying portlet as an element supporting events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="portlet-definition-ref"/>
>> <details key="namespace" value="##targetNamespace"/>
>> <details key="affiliation" value="element-supporting-events"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="This is an abstract type that
>> can never be used directly; actual XML documents can only contain
>> derived types"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="elements"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The event-definitionType is
>> used to declare events the portlet can either receive or emit. The
>> name must be unique and must be the one the portlet is using in its
>> code for referencing this event."/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="EventDefinition"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> unique="false" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="name"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
>> unique="false" upperBound="-1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="alias"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="paramDefinitionRef" unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//IDREF">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="paramDefinitionRef"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Param">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value=" Add details"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="Param"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> unique="false" lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="name"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
>> unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//Boolean"
>> unsettable="true">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="option"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="details"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="ParamDefinition"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="param"
>> lowerBound="1" upperBound="-1"
>> eType="#//Param" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="param"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
>> unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//ID"
>> iD="true">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="uniqueName"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
>> eSuperTypes="#//Elements">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Portlet that supports the
>> event"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="PortletDefinitionRef"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="supportedPublishingEvent"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="supported-publishing-event"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="supportedSubscribedEvent"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="supported-subscribed-event"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="portletDefinitionRef" unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="portletDefinitionRef"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> </ecore:EPackage>
>>
>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #87460 is a reply to message #87445] Tue, 26 June 2007 19:45 Go to previous messageGo to next message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I spoke to the developer. She said that Qname is correct as it identify
the URI,local-name pair in the element.

In the xsd
<xs:complexType name="EventDefinition">
<xs:element name="supported-publishing-event" type="xs:QName"
minOccurs="0" maxOccurs="1"/>
</xs:complexType>

would end up loooking like this in the xml file
<EventDefinition>
<supported-publishing-event
xmlns:x="http:acme.com/event">com.acme.foo</supported-publishing-event >
</EventDefinition>

where [xmlns:x="http:acme.com/event"] and [com.acme.foo] would be user
defined data.

Could the metadata look like this:

<class
name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
requires-extent="true" persistence-modifier="persistence-capable"
detachable="true" identity-type="datastore">
<implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
<inheritance strategy="superclass-table">
<discriminator value="PortletDefinitionRef"/>
</inheritance>
<version strategy="version-number" column="e_version"/>
<field name="supportedPublishingEvent" persistence-modifier="persistent">
<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection> //for the URI

<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection> //for the local name


<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
</field>
<field name="supportedSubscribedEvent" persistence-modifier="persistent">
<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
</field>
<field name="portletDefinitionRef" persistence-modifier="persistent"
null-value="none"/>
</class>
Re: no implementation classes of "java.lang.Object" have been found! [message #87475 is a reply to message #87460] Tue, 26 June 2007 21:44 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
No that won't work afaik. Looking at the generated java code, what type of object would be put in
the EList declared in the generated java code?
protected EList<Object> supportedPublishingEvent = null;

gr. Martin

Julia wrote:
> Hi Martin,
>
> I spoke to the developer. She said that Qname is correct as it identify
> the URI,local-name pair in the element.
>
> In the xsd
> <xs:complexType name="EventDefinition">
> <xs:element name="supported-publishing-event" type="xs:QName"
> minOccurs="0" maxOccurs="1"/>
> </xs:complexType>
>
> would end up loooking like this in the xml file
> <EventDefinition>
> <supported-publishing-event
> xmlns:x="http:acme.com/event">com.acme.foo</supported-publishing-event >
> </EventDefinition>
>
> where [xmlns:x="http:acme.com/event"] and [com.acme.foo] would be
> user defined data.
>
> Could the metadata look like this:
>
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection> //for the URI
>
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection> //for the local name
>
>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef" persistence-modifier="persistent"
> null-value="none"/>
> </class>
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #87554 is a reply to message #87475] Wed, 27 June 2007 23:53 Go to previous messageGo to next message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I don't think I have any generated code for Qname. I thought QName was a
primitive type similiar to IDREF. IDREF is translated to java.lang.string.
Would not QName be the same?

We have it declared as

<xs:element name="supported-publishing-event" type="xs:QName"
minOccurs="0" maxOccurs="unbounded"/>

where xs namespace refers to xmlns:xs="http://www.w3.org/2001/XMLSchema.

Would I need to add code for this?
Re: no implementation classes of "java.lang.Object" have been found! [message #87586 is a reply to message #87554] Thu, 28 June 2007 06:26 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Yes that was also my first thought (that it is a String) but because you mentioned that it existed
of two parts (uri and local-name) I thought that in your case it was more complex.
If you always know that it is a String then setting it the element-type to java.lang.String (instead
of java.lang.Object) should work.

gr. Martin

Julia wrote:
> Hi Martin,
>
> I don't think I have any generated code for Qname. I thought QName was a
> primitive type similiar to IDREF. IDREF is translated to
> java.lang.string. Would not QName be the same?
>
> We have it declared as
> <xs:element name="supported-publishing-event" type="xs:QName"
> minOccurs="0" maxOccurs="unbounded"/>
>
> where xs namespace refers to xmlns:xs="http://www.w3.org/2001/XMLSchema.
>
> Would I need to add code for this?
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #608590 is a reply to message #87365] Tue, 26 June 2007 07:42 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Teneo can't find the implementation class for the supportedPublishingEvent efeature (or it's type is
really java.lang.Object). When you check the generated java code for this efeature is it's type then
also java.lang.Object?
Can you post the ecore of this efeature?

gr. Martin

Julia wrote:
> Hi Martin,
>
> I'm using jpox 1.1.8 with DB2 v9
>
> I'm getting this error when I try to create the schema for a xsd. Is it
> saying that it can't find some jdk classes? That I need to add it to the
> classpath?
>
> Julia
>
>
> Exception in thread "main" javax.jdo.JDOUserException: Field
> " com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
> is declared as a reference type (interface/Object) but no implementation
> classes of "java.lang.Object" have been found!
> at
> org.jpox.metadata.MetaDataUtils.getImplementationNamesForRef erenceField(MetaDataUtils.java:441)
>
> at
> org.jpox.metadata.AbstractPropertyMetaData.setRelation(Abstr actPropertyMetaData.java:1959)
>
> at
> org.jpox.metadata.AbstractPropertyMetaData.getRelatedFieldMe taData(AbstractPropertyMetaData.java:2147)
>
> at
> org.jpox.store.rdbms.sqlidentifier.JPOXIdentifierFactory.new DatastoreContainerIdentifier(JPOXIdentifierFactory.java:132)
>
> at
> org.jpox.store.rdbms.RDBMSManager.getTableIdentifier(RDBMSMa nager.java:2315)
>
> at org.jpox.store.rdbms.RDBMSManager.access$6100(RDBMSManager.j ava:165)
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.addJoinTableFor Container(RDBMSManager.java:3368)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.access$700(RDBM SManager.java:2470)
>
> at
> org.jpox.store.rdbms.RDBMSManager.newJoinDatastoreContainerO bject(RDBMSManager.java:1033)
>
> at
> org.jpox.store.mapping.AbstractContainerMapping.initialize(A bstractContainerMapping.java:102)
>
> at
> org.jpox.store.mapping.MappingFactory.createMapping(MappingF actory.java:88)
> at
> org.jpox.store.mapping.AbstractMappingManager.getMapping(Abs tractMappingManager.java:231)
>
> at
> org.jpox.store.rdbms.table.ClassTable.addFieldMetaData(Class Table.java:458)
> at
> org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable .java:397)
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClass Tables(RDBMSManager.java:2966)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesA ndValidate(RDBMSManager.java:3311)
>
> at
> org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManage r.java:2554)
> at
> org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RD BMSManager.java:2406)
>
> at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.ja va:821)
> at
> org.eclipse.emf.teneo.jpox.JpoxDataStore.createSchema(JpoxDa taStore.java:468)
>
> at
> org.eclipse.emf.teneo.jpox.JpoxDataStore.initialize(JpoxData Store.java:196)
> at com.ibm.isclite.wccm.clientevent.Tutorial2.main(Tutorial2.ja va:99)
>
>
> The section of the jdo for hte above
> " com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl.supportedPublishingEvent "
> looks like this:
>
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox" key="cache-lazy-loading"
> value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox" key="cache-lazy-loading"
> value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef"
> persistence-modifier="persistent" null-value="none"/>
> </class>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #608592 is a reply to message #87380] Tue, 26 June 2007 13:01 Go to previous message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

This is the generated model code that point of error
protected EList<Object> supportedPublishingEvent = null;

public EList<Object> getSupportedPublishingEvent() {
if (supportedPublishingEvent == null) {
supportedPublishingEvent = new EDataTypeEList<Object>(Object.class,
this,
ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
}
return supportedPublishingEvent;
}

This the section in the jdo:
<class
name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
requires-extent="true" persistence-modifier="persistence-capable"
detachable="true" identity-type="datastore">
<implements
name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
<inheritance strategy="superclass-table">
<discriminator value="PortletDefinitionRef"/>
</inheritance>
<version strategy="version-number" column="e_version"/>
<field name="supportedPublishingEvent"
persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
</field>
<field name="supportedSubscribedEvent"
persistence-modifier="persistent">
<collection element-type="java.lang.Object">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
</field>
<field name="portletDefinitionRef" persistence-modifier="persistent"
null-value="none"/>
</class>


This is the ecore
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"

nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
nsPrefix="clientevent">
<eAnnotations source="http://www.w3.org/XML/1998/namespace">
<details key="lang" value="en"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This is the root element and
holds list of Client Events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="ClientEvents"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference"
name="paramDefinition" upperBound="-1"
eType="#//ParamDefinition" containment="true"
resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The definition of one or
client parameters"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="param-definition"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="eventDefinition" upperBound="-1"
eType="#//EventDefinition" containment="true"
resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The definition of client side
events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="event-definition"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="elementSupportingEventsGroup"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="group"/>
<details key="name" value="element-supporting-events:group"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="elementSupportingEvents"
upperBound="-1" eType="#//Elements" changeable="false"
volatile="true" transient="true"
derived="true" containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="element-supporting-events"/>
<details key="namespace" value="##targetNamespace"/>
<details key="group" value="element-supporting-events:group"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
unique="false" upperBound="-1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementWildcard"/>
<details key="name" value=":mixed"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap"
upperBound="-1"
eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xmlns:prefix"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="xSISchemaLocation" upperBound="-1"
eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
transient="true" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="xsi:schemaLocation"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="elementSupportingEvents"
upperBound="-2" eType="#//Elements" changeable="false"
volatile="true" transient="true"
derived="true" containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Abstract base element for
specifying elements supporting events. For each concrete subtype of
element there must be an element defined that can substitute
element-supporting-events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="element-supporting-events"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="ibmPortalClientevent" upperBound="-2"
eType="#//ClientEvents" volatile="true" transient="true"
derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="ibm-portal-clientevent"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="portletDefinitionRef" upperBound="-2"
eType="#//PortletDefinitionRef" volatile="true" transient="true"
derived="true"
containment="true" resolveProxies="false">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="wire target definition for
specifying portlet as an element supporting events"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="portlet-definition-ref"/>
<details key="namespace" value="##targetNamespace"/>
<details key="affiliation" value="element-supporting-events"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="This is an abstract type that
can never be used directly; actual XML documents can only contain derived
types"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="elements"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The event-definitionType is used
to declare events the portlet can either receive or emit. The name must be
unique and must be the one the portlet is using in its code for
referencing this event."/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="EventDefinition"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
unique="false" upperBound="-1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="alias"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="paramDefinitionRef" unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//IDREF">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="paramDefinitionRef"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Param">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value=" Add details"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Param"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Boolean"
unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="option"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="details"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="ParamDefinition"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="description"
eType="ecore:EClass base.ecore#//Text"
containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="description"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="param"
lowerBound="1" upperBound="-1"
eType="#//Param" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="param"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//ID"
iD="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="uniqueName"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
eSuperTypes="#//Elements">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Portlet that supports the
event"/>
</eAnnotations>
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="PortletDefinitionRef"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="supportedPublishingEvent"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="supported-publishing-event"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="supportedSubscribedEvent"
unique="false" upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//QName">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="supported-subscribed-event"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="portletDefinitionRef" unique="false"
lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="portletDefinitionRef"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
Re: no implementation classes of "java.lang.Object" have been found! [message #608593 is a reply to message #87413] Tue, 26 June 2007 13:22 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Teneo won't be able to discover which type the supportedPublishingEvent is as the generated java
code also uses java.lang.Doc. The only way to solve this is to make the type in the schema more
specific (if you control the schema). If you don't control the schema then maybe this would help?:
http://www.jpox.org/docs/1_1/objects.html

Following these guidelines, can you manually change the mapping? If this works then maybe I can add
it to Teneo using annotations.

gr. Martin

Julia wrote:
> Hi Martin,
>
> This is the generated model code that point of error
> protected EList<Object> supportedPublishingEvent = null;
>
> public EList<Object> getSupportedPublishingEvent() {
> if (supportedPublishingEvent == null) {
> supportedPublishingEvent = new
> EDataTypeEList<Object>(Object.class, this,
> ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
> }
> return supportedPublishingEvent;
> }
>
> This the section in the jdo:
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements
> name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox"
> key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order
> column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.Object">
> <extension vendor-name="jpox"
> key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order
> column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef"
> persistence-modifier="persistent" null-value="none"/>
> </class>
>
>
> This is the ecore
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"
>
> nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
>
> nsPrefix="clientevent">
> <eAnnotations source="http://www.w3.org/XML/1998/namespace">
> <details key="lang" value="en"/>
> </eAnnotations>
> <eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="This is the root element and
> holds list of Client Events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="ClientEvents"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="paramDefinition" upperBound="-1"
> eType="#//ParamDefinition" containment="true"
> resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The definition of one or
> client parameters"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="param-definition"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="eventDefinition" upperBound="-1"
> eType="#//EventDefinition" containment="true"
> resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The definition of client side
> events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="event-definition"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="elementSupportingEventsGroup"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="group"/>
> <details key="name" value="element-supporting-events:group"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="elementSupportingEvents"
> upperBound="-1" eType="#//Elements" changeable="false"
> volatile="true" transient="true"
> derived="true" containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="element-supporting-events"/>
> <details key="namespace" value="##targetNamespace"/>
> <details key="group" value="element-supporting-events:group"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value=""/>
> <details key="kind" value="mixed"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
> unique="false" upperBound="-1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="elementWildcard"/>
> <details key="name" value=":mixed"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="xMLNSPrefixMap" upperBound="-1"
> eType="ecore:EClass
> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
> transient="true" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="xmlns:prefix"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="xSISchemaLocation" upperBound="-1"
> eType="ecore:EClass
> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
> transient="true" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="xsi:schemaLocation"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="elementSupportingEvents"
> upperBound="-2" eType="#//Elements" changeable="false"
> volatile="true" transient="true"
> derived="true" containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Abstract base element for
> specifying elements supporting events. For each concrete subtype of
> element there must be an element defined that can substitute
> element-supporting-events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="element-supporting-events"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="ibmPortalClientevent" upperBound="-2"
> eType="#//ClientEvents" volatile="true" transient="true"
> derived="true" containment="true"
> resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="ibm-portal-clientevent"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="portletDefinitionRef" upperBound="-2"
> eType="#//PortletDefinitionRef" volatile="true" transient="true"
> derived="true"
> containment="true" resolveProxies="false">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="wire target definition for
> specifying portlet as an element supporting events"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="portlet-definition-ref"/>
> <details key="namespace" value="##targetNamespace"/>
> <details key="affiliation" value="element-supporting-events"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="This is an abstract type that
> can never be used directly; actual XML documents can only contain
> derived types"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="elements"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="The event-definitionType is
> used to declare events the portlet can either receive or emit. The name
> must be unique and must be the one the portlet is using in its code for
> referencing this event."/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="EventDefinition"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
> unique="false" upperBound="-1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="alias"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="paramDefinitionRef" unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//IDREF">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="paramDefinitionRef"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Param">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value=" Add details"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Param"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
> unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//Boolean"
> unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="option"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="details"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="ParamDefinition"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
> eType="ecore:EClass base.ecore#//Text"
> containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="description"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="param"
> lowerBound="1" upperBound="-1"
> eType="#//Param" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="param"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
> unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//ID"
> iD="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="uniqueName"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
> eSuperTypes="#//Elements">
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Portlet that supports the
> event"/>
> </eAnnotations>
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="PortletDefinitionRef"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="supportedPublishingEvent"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="supported-publishing-event"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="supportedSubscribedEvent"
> unique="false" upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//QName">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="supported-subscribed-event"/>
> <details key="namespace" value="##targetNamespace"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="portletDefinitionRef" unique="false"
> lowerBound="1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="attribute"/>
> <details key="name" value="portletDefinitionRef"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #608594 is a reply to message #87431] Tue, 26 June 2007 13:23 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I made a small typo, here is the correct post:

Hi Julia,
Teneo won't be able to discover which type the supportedPublishingEvent is as the generated java
code also uses java.lang.Object. The only way to solve this is to make the type in the schema more
specific (if you control the schema). If you don't control the schema then maybe this would help?:
http://www.jpox.org/docs/1_1/objects.html

Following these guidelines, can you manually change the mapping? If this works then maybe I can add
it to Teneo using annotations.

gr. Martin

Martin Taal wrote:
> Hi Julia,
> Teneo won't be able to discover which type the supportedPublishingEvent
> is as the generated java code also uses java.lang.Doc. The only way to
> solve this is to make the type in the schema more specific (if you
> control the schema). If you don't control the schema then maybe this
> would help?:
> http://www.jpox.org/docs/1_1/objects.html
>
> Following these guidelines, can you manually change the mapping? If this
> works then maybe I can add it to Teneo using annotations.
>
> gr. Martin
>
> Julia wrote:
>> Hi Martin,
>>
>> This is the generated model code that point of error
>> protected EList<Object> supportedPublishingEvent = null;
>>
>> public EList<Object> getSupportedPublishingEvent() {
>> if (supportedPublishingEvent == null) {
>> supportedPublishingEvent = new
>> EDataTypeEList<Object>(Object.class, this,
>> ClienteventPackage.PORTLET_DEFINITION_REF__SUPPORTED_PUBLISH ING_EVENT);
>> }
>> return supportedPublishingEvent;
>> }
>>
>> This the section in the jdo:
>> <class
>> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
>> requires-extent="true" persistence-modifier="persistence-capable"
>> detachable="true" identity-type="datastore">
>> <implements
>> name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
>> <inheritance strategy="superclass-table">
>> <discriminator value="PortletDefinitionRef"/>
>> </inheritance>
>> <version strategy="version-number" column="e_version"/>
>> <field name="supportedPublishingEvent"
>> persistence-modifier="persistent">
>> <collection element-type="java.lang.Object">
>> <extension vendor-name="jpox"
>> key="cache-lazy-loading" value="true"/>
>> </collection>
>> <join/>
>> <order
>> column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
>> </field>
>> <field name="supportedSubscribedEvent"
>> persistence-modifier="persistent">
>> <collection element-type="java.lang.Object">
>> <extension vendor-name="jpox"
>> key="cache-lazy-loading" value="true"/>
>> </collection>
>> <join/>
>> <order
>> column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
>> </field>
>> <field name="portletDefinitionRef"
>> persistence-modifier="persistent" null-value="none"/>
>> </class>
>>
>>
>> This is the ecore
>> <?xml version="1.0" encoding="UTF-8"?>
>> <ecore:EPackage xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="clientevent"
>>
>> nsURI=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-clientevent.xsd"
>>
>> nsPrefix="clientevent">
>> <eAnnotations source="http://www.w3.org/XML/1998/namespace">
>> <details key="lang" value="en"/>
>> </eAnnotations>
>> <eClassifiers xsi:type="ecore:EClass" name="ClientEvents">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="This is the root element and
>> holds list of Client Events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="ClientEvents"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="paramDefinition" upperBound="-1"
>> eType="#//ParamDefinition" containment="true"
>> resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The definition of one or
>> client parameters"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="param-definition"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="eventDefinition" upperBound="-1"
>> eType="#//EventDefinition" containment="true"
>> resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The definition of client
>> side events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="event-definition"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="elementSupportingEventsGroup"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="group"/>
>> <details key="name" value="element-supporting-events:group"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="elementSupportingEvents"
>> upperBound="-1" eType="#//Elements" changeable="false"
>> volatile="true" transient="true"
>> derived="true" containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="element-supporting-events"/>
>> <details key="namespace" value="##targetNamespace"/>
>> <details key="group" value="element-supporting-events:group"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value=""/>
>> <details key="kind" value="mixed"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
>> unique="false" upperBound="-1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="elementWildcard"/>
>> <details key="name" value=":mixed"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="xMLNSPrefixMap" upperBound="-1"
>> eType="ecore:EClass
>> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
>> transient="true" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="xmlns:prefix"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="xSISchemaLocation" upperBound="-1"
>> eType="ecore:EClass
>> http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEn try"
>> transient="true" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="xsi:schemaLocation"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="elementSupportingEvents"
>> upperBound="-2" eType="#//Elements" changeable="false"
>> volatile="true" transient="true"
>> derived="true" containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Abstract base element for
>> specifying elements supporting events. For each concrete subtype of
>> element there must be an element defined that can substitute
>> element-supporting-events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="element-supporting-events"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="ibmPortalClientevent" upperBound="-2"
>> eType="#//ClientEvents" volatile="true" transient="true"
>> derived="true" containment="true"
>> resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="ibm-portal-clientevent"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="portletDefinitionRef" upperBound="-2"
>> eType="#//PortletDefinitionRef" volatile="true"
>> transient="true" derived="true"
>> containment="true" resolveProxies="false">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="wire target definition for
>> specifying portlet as an element supporting events"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="portlet-definition-ref"/>
>> <details key="namespace" value="##targetNamespace"/>
>> <details key="affiliation" value="element-supporting-events"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Elements" abstract="true">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="This is an abstract type that
>> can never be used directly; actual XML documents can only contain
>> derived types"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="elements"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="EventDefinition">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="The event-definitionType is
>> used to declare events the portlet can either receive or emit. The
>> name must be unique and must be the one the portlet is using in its
>> code for referencing this event."/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="EventDefinition"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> unique="false" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="name"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="alias"
>> unique="false" upperBound="-1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="alias"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="paramDefinitionRef" unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//IDREF">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="paramDefinitionRef"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="Param">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value=" Add details"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="Param"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
>> unique="false" lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="name"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="option"
>> unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//Boolean"
>> unsettable="true">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="option"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="ParamDefinition">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="details"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="ParamDefinition"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="description"
>> eType="ecore:EClass base.ecore#//Text"
>> containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="description"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="param"
>> lowerBound="1" upperBound="-1"
>> eType="#//Param" containment="true" resolveProxies="false">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="param"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueName"
>> unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//ID"
>> iD="true">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="uniqueName"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="PortletDefinitionRef"
>> eSuperTypes="#//Elements">
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Portlet that supports the
>> event"/>
>> </eAnnotations>
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="PortletDefinitionRef"/>
>> <details key="kind" value="elementOnly"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="supportedPublishingEvent"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="supported-publishing-event"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="supportedSubscribedEvent"
>> unique="false" upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//QName">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="supported-subscribed-event"/>
>> <details key="namespace" value="##targetNamespace"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="portletDefinitionRef" unique="false"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="attribute"/>
>> <details key="name" value="portletDefinitionRef"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> </eClassifiers>
>> </ecore:EPackage>
>>
>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #608595 is a reply to message #87445] Tue, 26 June 2007 19:45 Go to previous message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I spoke to the developer. She said that Qname is correct as it identify
the URI,local-name pair in the element.

In the xsd
<xs:complexType name="EventDefinition">
<xs:element name="supported-publishing-event" type="xs:QName"
minOccurs="0" maxOccurs="1"/>
</xs:complexType>

would end up loooking like this in the xml file
<EventDefinition>
<supported-publishing-event
xmlns:x="http:acme.com/event">com.acme.foo</supported-publishing-event >
</EventDefinition>

where [xmlns:x="http:acme.com/event"] and [com.acme.foo] would be user
defined data.

Could the metadata look like this:

<class
name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
requires-extent="true" persistence-modifier="persistence-capable"
detachable="true" identity-type="datastore">
<implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
<inheritance strategy="superclass-table">
<discriminator value="PortletDefinitionRef"/>
</inheritance>
<version strategy="version-number" column="e_version"/>
<field name="supportedPublishingEvent" persistence-modifier="persistent">
<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection> //for the URI

<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection> //for the local name


<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
</field>
<field name="supportedSubscribedEvent" persistence-modifier="persistent">
<collection element-type="java.lang.String">
<extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
</collection>
<join/>
<order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
</field>
<field name="portletDefinitionRef" persistence-modifier="persistent"
null-value="none"/>
</class>
Re: no implementation classes of "java.lang.Object" have been found! [message #608596 is a reply to message #87460] Tue, 26 June 2007 21:44 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
No that won't work afaik. Looking at the generated java code, what type of object would be put in
the EList declared in the generated java code?
protected EList<Object> supportedPublishingEvent = null;

gr. Martin

Julia wrote:
> Hi Martin,
>
> I spoke to the developer. She said that Qname is correct as it identify
> the URI,local-name pair in the element.
>
> In the xsd
> <xs:complexType name="EventDefinition">
> <xs:element name="supported-publishing-event" type="xs:QName"
> minOccurs="0" maxOccurs="1"/>
> </xs:complexType>
>
> would end up loooking like this in the xml file
> <EventDefinition>
> <supported-publishing-event
> xmlns:x="http:acme.com/event">com.acme.foo</supported-publishing-event >
> </EventDefinition>
>
> where [xmlns:x="http:acme.com/event"] and [com.acme.foo] would be
> user defined data.
>
> Could the metadata look like this:
>
> <class
> name=" com.ibm.isclite.wccm.clientevent.impl.PortletDefinitionRefIm pl "
> requires-extent="true" persistence-modifier="persistence-capable"
> detachable="true" identity-type="datastore">
> <implements name="com.ibm.isclite.wccm.clientevent.PortletDefinitionRef "/>
> <inheritance strategy="superclass-table">
> <discriminator value="PortletDefinitionRef"/>
> </inheritance>
> <version strategy="version-number" column="e_version"/>
> <field name="supportedPublishingEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection> //for the URI
>
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection> //for the local name
>
>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDPUBLISHINGEVENT_IDX"/ >
> </field>
> <field name="supportedSubscribedEvent"
> persistence-modifier="persistent">
> <collection element-type="java.lang.String">
> <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
> </collection>
> <join/>
> <order column="PORTLETDEFINITIONREF_SUPPORTEDSUBSCRIBEDEVENT_IDX"/ >
> </field>
> <field name="portletDefinitionRef" persistence-modifier="persistent"
> null-value="none"/>
> </class>
>
>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: no implementation classes of "java.lang.Object" have been found! [message #608601 is a reply to message #87475] Wed, 27 June 2007 23:53 Go to previous message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I don't think I have any generated code for Qname. I thought QName was a
primitive type similiar to IDREF. IDREF is translated to java.lang.string.
Would not QName be the same?

We have it declared as

<xs:element name="supported-publishing-event" type="xs:QName"
minOccurs="0" maxOccurs="unbounded"/>

where xs namespace refers to xmlns:xs="http://www.w3.org/2001/XMLSchema

Would I need to add code for this?
Re: no implementation classes of "java.lang.Object" have been found! [message #608603 is a reply to message #87554] Thu, 28 June 2007 06:26 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Yes that was also my first thought (that it is a String) but because you mentioned that it existed
of two parts (uri and local-name) I thought that in your case it was more complex.
If you always know that it is a String then setting it the element-type to java.lang.String (instead
of java.lang.Object) should work.

gr. Martin

Julia wrote:
> Hi Martin,
>
> I don't think I have any generated code for Qname. I thought QName was a
> primitive type similiar to IDREF. IDREF is translated to
> java.lang.string. Would not QName be the same?
>
> We have it declared as
> <xs:element name="supported-publishing-event" type="xs:QName"
> minOccurs="0" maxOccurs="unbounded"/>
>
> where xs namespace refers to xmlns:xs="http://www.w3.org/2001/XMLSchema
>
> Would I need to add code for this?
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Comment information in the DB
Next Topic:Comment information in the DB
Goto Forum:
  


Current Time: Thu Apr 25 09:56:14 GMT 2024

Powered by FUDForum. Page generated in 0.04572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top