Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-dev] help with XMI DB definition files

Thanks Brian.

I got the following exception when I tried the ExampleForVendorPrimitiveWrite.java <http://www.eclipse.org/datatools/project_modelbase/modelbase_doc/sampleZip/ExampleForVendorPrimitiveWrite.java> (created a temp package, eclipse.hkolwalk); this may mean some inconsistency in the dependency with EMF layers (BasicEList class came from org.eclipse.emf.common_2.2.1.v200609210005.jar).

Exception in thread "main" java.lang.ArrayStoreException: org.eclipse.datatools.modelbase.dbdefinition.DefaultValueType
   at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.java:188)
   at org.eclipse.emf.common.util.BasicEList.addUnique(BasicEList.java:619)
at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUnique(NotifyingListImpl.java:323) at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:307)
   at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:600)
at eclipse.hkolwalk.ExampleForVendorPrimitiveWrite.save(ExampleForVendorPrimitiveWrite.java:114) at eclipse.hkolwalk.ExampleForVendorPrimitiveWrite.main(ExampleForVendorPrimitiveWrite.java:39)

Just thought of raising it just in case.

Regards
Anthos
brian.fitzpatrick@xxxxxxxxxx wrote:

There is a Java class file that can be modified to generate the XMI DB definition files. Check out... http://www.eclipse.org/datatools/project_modelbase/modelbase_doc/DTP%20Modelbase%20White%20paper.htm and

http://www.eclipse.org/datatools/project_modelbase/modelbase_doc/sampleZip/ExampleForVendorPrimitiveWrite.java
The second link is to the sample Java file that generates the XMI DB definition. --Fitz

Brian Fitzpatrick
Senior Software Engineer/DTP Committer
Sybase, Inc.

-----dtp-dev-bounces@xxxxxxxxxxx wrote: -----

    To: DTP development mailing list <dtp-dev@xxxxxxxxxxx>
    From: rcernich@xxxxxxxxxx
    Sent by: dtp-dev-bounces@xxxxxxxxxxx
    Date: 11/08/2006 09:11AM
    Subject: Re: [dtp-dev] help with XMI DB definition files

    Hey Anthos,

    > I think I have raised this topic sometime back.
    > Could someone please guide me on how the file eclipse//plugins/
    > org.eclipse.datatools.enablement.oracle.dbdefinition_*/runtime/
    > vendors/Oracle_10/Oracle_10.xmi is generated ?

    I'm not sure how these were generated initially, but I can tell
    you that
    I've just been editing the files by hand.  I think you could write
    a little
    EMF based application to create the model elements and serialize
    it out,
    but, for me, it was just easier to hand edit.

    Rob

    _______________________________________________
    dtp-dev mailing list
    dtp-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/dtp-dev


------------------------------------------------------------------------

_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev



Back to the top