no implementation classes of "java.lang.Object" have been found! [message #87365] |
Mon, 25 June 2007 22:11 |
Eclipse User |
|
|
|
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 #87445 is a reply to message #87431] |
Tue, 26 June 2007 13:23 |
Martin Taal 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 #608594 is a reply to message #87431] |
Tue, 26 June 2007 13:23 |
Martin Taal 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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04572 seconds