Mapping inner class in mapping workbench

A project needs to work with inner classes and map these inner classes using TopLink Mapping Workbench. Is this supported? Thanks.
Haiwie

Karen,
Thanks for your response.
I tried with 9.0.4.4, and it worked. I had to use 'Use Factory' option for Instantiation; the mapping workbench complains about the default instantiation setting, i.e. 'Use Default Constructor'.
Haiwei

Similar Messages

  • Creating a pseudo column in class-table mapping

    I would like to create a class (Reference) with attributes
    long owner ;
    long child ;
    String childName ; // read only
    This will be loaded into the owner object in a Vector.
    This will be mapped to a database table (db_references) with columns
    owner number; -- FK to owner
    child number; --FK to child
    We are setting a shallow load scheme where we are only pulling the keys of the child objects into the owner.
    However, on load, I would like to be able to pull in the name of the child object as well as the key.
    If I add the child table to the descriptor, inserts of the Reference class try to insert into child table which already has the row, throwing the predictable error.
    This is another situation where my Oracle Forms experience must be blinding me to the correct solution. Any suggestions?

    I gave up on the generic mapping class and mapping table endeavor.
    In my current test, I created a read only SummaryClass that maps to a subset of the attributes on the FullClass.
    The Vector in the OwnerClass is mapped to the SummaryClass in TopLink. I even created a view on the tables involved with the FullClass with just the attributes required by the SummaryClass. When I read the owner, I get the FullClass in the Vector. I even changed the PK in the view for the SummaryClass to not match that in the FullClass.
    The FullClass objects are in the TopLink cache. There is no attempt to read the database on the read.
    When I issue a
    server.initializeIdentityMaps()
    in the read statement.
    Then the correct classes are returned on the read.
    A less radical:
    UnitOfWork uowSession = getUnitOfWorkSession();
    uowSession.removeFromIdentityMap(thePlan);
    in the read also works.
    I am rather concerned that the returned class from a TopLink read changes based on the state of the read cache.
    Any suggestions on how best to address this odd behavior?
    Thanks

  • Mapping java classes to XML files

    Hi Friends !!
    Please I need your help.
    Does somebody out there know any framework or API that helps me to map Java classes to XML files.
    Something like:
    public class Test {
        public int x;
        public int y;
        public int sum(){}
    }to something like:
    <?xml version="1.0" encoding="UTF-8"?>
    <class>
    <className>Test</className>
    bla
    bla
    bla
    </class>
    Any tips?
    Thanks in advance
    Cleverson

    JAXB will create classes from an XML schema, SAX is a parser library and JAXP is a library of XML a bunch of XML tools.
    I don't care for JAXB too much. I would skip it and go right to the JAX-RPC spec (WebServices).

  • BIC mapping names / classes

    Anyone out there using Seeburger BIC converter...Do you know where the mapping names / classes are stored in XI. We think we deployed the mapping libraries but not sure where this is stored for reference. Any help in this matter is greatly appreciated.
    We have an oss message sitting out there for the last 3 days.
    We just need to know the mapping name to use to go from ANSI 856 to 856 XSD (seeburger definition).
    Thank you,
    Pam

    Hi!
    The mapping name from ANSI to XML (1:1 mapping) should be:
    "See_E2X_ANSIX12_856V4030" where "V4030" is the version of the message.
    Chris

  • Flex 3 Class Architecture Map?

    Hello,
    Does anyone know if there is a Class Architecture Map for Flex 3 at all? Not sure if it's actually called that but basically I'm after a wall chart that shows all the Classes, they're properties and methods, etc and ideally the inheritence structure?
    This is so I can stick it on my wall and see at a glance what is available to me and where things are.
    Thanks,
    Nick

    Hi Nick,
    I like to think of it as wallpaper, as opposed to posters.
    Contact your local user groups and they may still have some of them.  I'm not sure where you'd get it.
    If you google around, you can find a few links:
    http://blogs.adobe.com/flexteam/archives/2008/02/sneak-peak-at-f.html
    http://blog.flashgen.com/2008/10/23/free-flex-3-actionscript-3-posters/
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=posters&sdid=ZFCT

  • Linkage error occured when loading the class:Java Mapping

    I AM GETTING THE ABOVE ERROR IN SUB WHEN TESTING THE MAPPING .
    Source:
    <MTO_FTP_MAT_DETAILS>
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    TARGET
    MTI_FTP_MAT_DETAILS
    <MATDETAILS>
    <MAKTX>
    <MATNR>
    <WERKS>
    <LABST>
    <MEINS>
    <PERCNT>
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import com.sap.aii.mapping.api.StreamTransformation;
    class Echo {
         public static OutputStream out;
    public class myEcho extends DefaultHandler implements StreamTransformation {
         private Map map;
         public void setParameter(Map param) {
              map = param;
         public void execute(InputStream in, OutputStream out) {
              DefaultHandler handler = this;
              SAXParserFactory factory = SAXParserFactory.newInstance();
              try {
                   SAXParser saxParser = factory.newSAXParser();
                   Echo.out = out;
                   saxParser.parse(in, handler);
              } catch (Throwable t) {
                   t.printStackTrace();
         public void startDocument() throws SAXException {
              try {
                   Echo.out.write("<?xml version='1.0' encoding='UTF-8'?>".getBytes());
              } catch (IOException e) {
                   e.notify();
         public void endDocument() throws SAXException {
              try {
                   Echo.out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startElement(String namespaceURI, String sName, // simple name
         String qName, // qualified name
         Attributes attrs) throws SAXException {
              String eName = sName; // element name
              if ("".equals(eName))
                   eName = qName; // not namespace-aware
              if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
                   try {
                        Echo.out.write(("<MTI_FTP_MAT_DETAILS>").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
              } else {
                   try {
                        Echo.out.write(("<" + qName + ">").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
         public void endElement(String namespaceURI, String sName, // simple name
         String qName // qualified name
         ) throws SAXException {
              String eName = sName; // element name
              if ("".equals(eName))
                   eName = qName; // not namespace-aware
              if ("ns0:MTO_SAP_MAT_DETAILS".equals(qName)) {
                   try {
                        Echo.out.write(("</MTI_FTP_MAT_DETAILS>").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
              } else {
                   try {
                        Echo.out.write(("</" + qName + ">").getBytes());
                   } catch (Exception e) {
                        e.printStackTrace();
         public void characters(char buf[], int offset, int len)
              throws SAXException {
              String s = new String(buf, offset, len);
              try {
                   Echo.out.write(s.getBytes());
              } catch (Exception e) {
                   e.printStackTrace();

    Hi,
    When you make the jar to import to XI you must verify the two classes are generated at the same time. Later you can verify in Inteface Mapping that you are using the myEcho class to do the java mapping.
    Plesae verify the java version are the same in you own machine and the xi machine.
    Regards.

  • Primary Key Class Indicator mapping

    Hi
    We are using a Class Inidcator Field as described within Toplink documentation.
    We have encountered a problem, relating to the Class Indicator field not being populated within the Object within the cache,
    For example, the creation of one of our indictated objects successfully inserts the relevant class indicator value in the database, but the Object in the cache does not have the value set. This casues issues when attempting to identify the object in the cache.
    When re-reading the documentation at http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/descun007.htm#sthref2899 I noted the following line:
    "If the indicator field is part of the primary key, define a write-only transformation mapping for the indicator field (see Chapter 48, "Configuring a Relational Transformation Mapping"). "
    However following the documentaion trail, to http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/relmapun013.htm#CHDDBJJJ there is a statement:
    "Use transformation mappings only when mapping multiple fields into a single attribute. Because of the complexity of transformation mappings, it is often easier to perform the transformation with a converter or getter and setter methods of a direct-to-field mapping. See Chapter 38, "Configuring a Relational Direct-to-Field Mapping" for more information."
    Is there any definitive answer to correctly use a Class Indicator on a Primary Key field.
    Many Thanks
    Marc

    Hi,
    I'm still really struggling to find the correct way of implementing the mapping, as described within the documentation.
    As per the amended documentation quoted above, we are using a Primary Key field as the indentifier of a Class Indicator Mapping, and should therefore implement a "Read-Only Transformation Mapping for the indicator field".
    The explanation of how to implement Transformation Mappings in section 33-15,
    stipluates that both the "attribute transformer" - reading from the database,
    and the "field transformer" must be specified. By default, this would appear to
    be describing a read and write transformational mapping. Please correct me, if
    I am wrong.
    Therefore, we have currently found no method of implementing a "Read Only"
    transformational mapping for a Class Indicator Mapping.
    Any assistance in advising of the method of implementing this, would be greatly appreciated.
    Regards
    Marc

  • Mapping of classes N to 1

    Hello,
    I am still new to QVTo and learning.
    I am trying to transform a model SRC to DST.
    Description of the mapping:
    The attributes from SRC:Block are being mapped to the DST:Blocks, DST:Diagram and DST:Props
    While trying to map SRC class 'Block' to DST classes Blocks I have tried to constructors and intermediate classes (I have attached the ecore diagrams). However, I am getting errors while doing so. Kindly help.
    The code I tried:
    -- Declaration with a condition: the instance may differ from the metamodel,
    -- but should have exactly one Project object. Location specific reference.
    modeltype SRC uses "com.example.src" where
    { self.objectsOfType(Model)->size() = 1 };
    -- Strict declaration, using a package namespace URI
    modeltype DST "strict" uses "com.example.dst";
    transformation SRCTransformation(in Source: SRC, out Target: DST);
    main() {
    Source.rootObjects()[Model] -> map ModelToSciMod();
    constructor Props::Props (id:String,val: String) { Id:=id; Value:=val; }
    mapping Model::ModelToSciMod(): SciMod {
    Name := self.Name;
    Version := "4.4";
    -- objects:=self.newEReference ->new(x) Props(x.id, P()) ;
    var s := self.newEReference ->map ObjToSys();
    mapping Systems::ObjToSys(): Objects {
    blocks:=self.blocks -> map BlkToBlk();
    links:=self.links -> map LnToLn();
    --constructor Props::Props (id:String,val: String) { Id:=id; Value:=val; }
    constructor Diagram::Diagram (d:Props) { P:=d }
    constructor Graphs::Graphs (att:Sequence(Props)) { }
    mapping Block:: BlkToBlk(): Blocks {
    Name:=self.Name;
    var type:= self.BlockType;
    var sid:= self.SID;
    var ports:=self.Ports;
    var prop1:= new Props("BlockType", type);
    var prop2:= new Props("SID", sid);
    var prop3:= new Props("Ports", ports);
    var di := new Diagram(prop1) ;
    dia:=intermediateDia -> map BlkToDia() ; -- ERROR showing here
    intermediate class IntermediateBlk2 {
    vars: OrderedSet(Block);
    intermediate class IntermediateDia {
    vars: OrderedSet(Block);
    intermediate property IntermediateBlk2::intermediateDia :IntermediateDia ;
    intermediate property IntermediateDia::intermediateP :Block ;
    mapping IntermediateBlk2:: BlkToDia(): Diagram {
    intermediateP
    mapping Line:: LnToLn(): Links {
    Kindly help.
    Also, kindly let me know if there are any tutorials/reference documents explaining the keywords.
    Thank you,
    Abhishek

    Hello Abhishek,
    For documentation about QVTo check the WIKI:
    https://wiki.eclipse.org/QVTo
    Especially the EclipseCon 2009 presentation.
    If you want a complete overview off all keywords, check the QVTo specification.
    http://www.omg.org/spec/QVT/1.2/PDF/
    If you want help with your error, please list the error as well. Also providing minimal examples of your problem in your question instead of listing everything will help in getting answers.
    As a start, adding intermediate properties to intermediate classes is strange (and maybe not well supported by the implementation). Add those attributes directly to the intermediate class.

  • Use inner class as collection

    Is there a way to get toplink to use an inner class collection to house my 1:m relationship. The collection needs some attributes of the containing object.
    Can i override how collection is constructed within the java, because it seems pretty clear the workbench doesn't support this.
    thanks
    craig

    Seem like an odd thing to do. If it were a static inner class it would be possible, but an instance inner class is probably not.
    If you really need a reference to the source object from the collection object, it might be better to accomplish this through making the inner collection class an outer class, or at least static. You could then set a back reference to the source object in the source object's set method for the collection. You would need to configure the mapping to use method access, or if using value holders you could lazily set the collection back reference from your get method for the collection. You could also make special get/set methods for TopLink to use to access the collection value that convert the special collect to and from a normal collection.
    In general it might be better to put the logic specific to the owning class in the owning class instead of the collection.

  • Trying to serialize inner class and getting various errors.

    Hi, I'm working on a program that contains the inner class User. user implements serializable, and writes just fine. For some strange reason, though, after I read it, I keep getting NullPointerExceptions in my code.
    I also tried it using externalization. The User class is essentially built around a HashMap. I have the following methods:
    public void writeExternal(ObjectOutput out) throws IOException {
    out.writeObject(mainMap);
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    mainMap = (Map) in.readObject();
    String test = (String) in.readObject();
    Whenever inputstream.readObject() is called, though, I get an InvalidClassException; "no valid constructor." The sad part is that I have the method:
    public User () {
    main = new HashMap();
    Does anyone know what the problem is??? Thanks a lot!

    Does anyone know what the problem is???The inner class is not a static inner class. Therefore your constructor User, is actually User(OuterClass). Solution - make the class static OR use read and/or write resolution to reconstruct the relationship.

  • Why eclipse gives me warning if I access in inner class a parent  field ?

    I have a class
    class A{
    private Map fValues;
    A(){
    fValues= new HashMap();
    prrotected class B {
    B(){
    fValues.get("String");
    Above class is only for an example to expalin my problem.
    Inner class B wants to access fValues from class A .
    The eclipse gives me a warning
    Access to enclosing method fValues from the type A is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
         I order to get rid of this warning I must make fValues public is this the only solution ?
    miro

    miro_connect wrote:
    I have a class
    class A{
    private Map fValues;
    A(){
    fValues= new HashMap();
    prrotected class B {
    B(){
    fValues.get("String");
    Above class is only for an example to expalin my problem.
    Inner class B wants to access fValues from class A .
    The eclipse gives me a warning
    Access to enclosing method fValues from the type A is emulated by a synthetic accessor method. Increasing its visibility will improve your performance
         I order to get rid of this warning I must make fValues public is this the only solution ?
    miroWhat happens if you remove the modifier? (That is uses default)

  • Program Design Problem: Inner Class use verse interacting seperate classes?

    i am designing a GUI based program that needs to have 2+ windows that interact with each other. In my original design there were just two windows: the World display, and the tile choser (this is for 2D map editing). Because there were only 2, I made them both inner classes of another class. The top level class's fields were how I got the two windows to interact.
    Now I am adding more tile choser esque windows and it is getting very confusing and the amount of Fields is getting ridiculous and the whole thing isnt very OO.
    I thought about splitting up the World Display window and the Tile Choser window into two different classes and just have multiple instances of the Tile Choser class for the additional windows.
    The problem is the interaction. I could pass all of the variables that both classes require to constructers and set up lots and lots of get and set methods, but then that seems to destroy the whole idea of two classes. The whole project is getting really messy.
    Any thoughts?
    I know that was a jarbled explanation so just ask about any part that might be unclear

    Create an object that represents the state being manipulated. The model.
    Create methods to modify that data. Not getters/setters, but controllers. If it's a map, then maybe a method would be "addTown" or something. This represents the controller.
    Create methods to render the data graphically. The views.
    Pass this object to GUI widgets, or reference it from inner event handlers.

  • Your Opinions: Inner Classes Need static Members

    Hi All,
    I want to solicit opinions for a minor change to the way inner classes work. I submitted this as an RFE to Sun and they rejected it, really without giving a reason. I'd like to know your opinions. If there is strong support I will repost the RFE.
    As you probably know, inner classes cannot have static members. The following generates a compiler error:import java.util.*;
    public class MyClass {
       class MyInnerClass {
          // Next line causes compiler error...
          static Map m = new HashMap();
    }In order to get around this you have to make the Map variable a static member of the containing class:import java.util.*;
    public class MyClass {
       static Map m = new HashMap(); // so much for encapsulation...
       class MyInnerClass {
    }I am suggesting that inner class be allowed to contain static members. Here's my reasoning...please comment:
    There are times when members (i.e., fields and methods) rightfully belong to the class as a whole, not to any particular instance of a class. I'm sure we've all found times when it was necessary to have static members in our classes. The same issues that necessitated using static members in top-level classes make them desirable for inner classes as well.
    Designing a class as an inner class is a step toward encapsulation. By forcing static members that logically belong in an inner class to be declared in the containing class is to crack the encapsulation, IMHO.
    Even though a containing class has access to all of an inner class' members (including private members) and vice versa, I think the notion of inner static members still is more OO-ish.
    What are your opinions? Would allowing inner classes to contain static members make Java more object oriented? I think it would.
    Technically, I don't think there's any reason this cannot work since the JVM has no notion of inner classes, per se.
    What do you think?

    an inner class is effectively a non static instance
    variable of its enclosing class. Instance member, but not a variable. it's a class, a type, not a variable.
    >
    I think the problem here is that making a field static
    means more than just that that field and its value are
    common to every instance of the class. It means that
    the value is valid without an instantiation of that
    class.
    Since the class itself must be instantiated (it is
    not static), What do you mean, excatly, by "_must_ be instantiated"? You are not ever "required" to instantiate anything unless you want to use it.
    you can't have static member data inside it. I don't see how this follows from the previous part of the statement.
    How would you reference the static member data of
    the inner class? You would have to specify an
    instance of the inner class, and since this breaks
    the meaning of static, you can't have static members
    in an inner class.How about outerObj.InnerClass.staticMember The syntax is well defined. The question at hand is, do we really want to allow this? The syntax to do this should only be an issue after that question has been answered in the affirmative. The people at Sun have decided not to allow it, so for now, syntax is a non-issue.
    >
    if you wanted a static member in an inner class you
    could put it in a super class of the inner class...Or in the enclosing class, as suggested in the orginal post.

  • Mysterious anonymous inner class in switch block

    public class MysteryFile {
      public enum Elements {
        WIND, EARTH, FIRE, WATER
      Elements el;
      public MysteryFile(Elements el) {
        this.el = el;
      public void whatIsItLike() {
        switch (el) {
          case WIND: System.out.println("A bit chilly sometimes"); break;
          case EARTH: System.out.println("Gets hands dirty."); break;
          case FIRE: System.out.println("Hot! skin melt"); break;
          case WATER: System.out.println("Cool! clean hands"); break;
          default: System.out.println("Don't know"); break;
      public static void main(String[] args) {
        MysteryFile anElement = new MysteryFile(Elements.FIRE);
        anElement.whatIsItLike();
    }When compiled in Netbeans or in the command line, generates an unexpected MysteryFile$1.class file. If the entire switch block is commented out and recompiled, it does not get generated. Where does this anonymous inner class come from?

    The MysteryFile$1 class looks something like this (javac 1.6.0_02):
    class MysteryFile$1 {
      static final int[] $SwitchMap$MysteryFile$Elements;
      static {
          // the line number (debug info) of this static initializer
          // is "switch (el)" line in MysteryFile.java
          $SwitchMap$MysteryFile$Elements =
                  new int[MysteryFile$Elements.values().length ];
          try {
              $SwitchMap$MysteryFile$Elements[
                      MysteryFile$Elements.WIND.ordinal() ] = 1;
          } catch (NoSuchFieldError e) {
              // fix stack?
          // repeat with EARTH(2), FIRE(3) and WATER(4)
    }... and the actual switch statement in 'MysteryFile' looks like so:
      //switch (el) {
      switch(MysteryFile$1.$SwitchMap$MysteryFile$Elements[
              this.el.ordinal() ])
      case 1:  // WIND
          break;
      case 2:  // EARTH
          break;
      case 3:  // FIRE
          break;
      case 4:  // WATER
          break;
      default:  // ...
      }I suppose this is necessary because the compiler can't guarantee that the runtime enum-constant-to-ordinal mapping will be identical to that at compile time (the API docs say it depends on the declaration order in the source code, which I think may change without breaking binary compatibility).
    PS MysteryFile$Elements.values() is a synthetic method that returns all enumeration constants in a MysteryFile$Elements array. Found this old related thread: [http://forum.java.sun.com/thread.jspa?threadID=617315]

  • Inner Class metadata file name?

    Dear All,
    I have a problem creating metadata file for static inner class. My
    environment (JBuilder 7.0 enterprise, KODO 1.4.1)
    Here is my example:
    package com.test;
    public class ClassA
    public static class ClassB
    private String f1;
    private String f2;
    Now I have the following problems:
    1. I have to manually define metadata file (I can't use JBuilder Kodo
    plugin it can't generate one for me when I want inner class to be JDO
    persistent)
    2. What name of .jdo file should be? I tried both "ClassB.jdo" and
    "ClassA.jdo" with no success... In JBiulder there is a KODO DataBase
    schema tool that complains that it can't find metadata for the file (see
    at the end trace stack:
    3. Here is my metadata file content, is it correct?
    <?xml version="1.0"?>
    <jdo>
    <package name="com.test">
    <class name="ClassA$ClassB"/>
    </package>
    </jdo>
    ==========
    Mon Mar 31 15:47:38 SGT 2003: ERROR: javax.jdo.JDOFatalUserException: Type
    "class com.test.ClassA$ClassB" does not have JDO metadata.
    Mon Mar 31 15:47:38 SGT 2003: ERROR: javax.jdo.JDOFatalUserException: Type
    "class com.test.ClassA$ClassB" does not have JDO metadata.
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:108)
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:85)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:802)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1136)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.execute(SchemaToolDialog.java:236)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.execute(SchemaToolDialog.java:217)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.actionPerformed(SchemaToolDialog.java:202)
         at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.Dialog.show(Dialog.java:380)
         at com.borland.primetime.ui.DefaultDialog.show(Unknown Source)
         at java.awt.Component.show(Component.java:946)
         at java.awt.Component.setVisible(Component.java:903)
         at com.borland.primetime.ui.DefaultDialog.showModalDialog(Unknown Source)
         at com.borland.primetime.ui.DefaultDialog.showModalDialog(Unknown Source)
         at
    com.solarmetric.modules.integration.jbuilder.SchemaToolAction.perform(SchemaToolAction.java:60)
         at
    com.solarmetric.modules.integration.jbuilder.SafeBrowserAction.actionPerformed(SafeBrowserAction.java:72)
         at com.borland.primetime.ide.BrowserAction.actionPerformed(Unknown Source)
         at com.borland.primetime.actions.r.actionPerformed(Unknown Source)
         at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
         at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
         at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    ==============
    best regards,
    Ruslan Zenin

    Ruslan-
    In article <[email protected]>, Ruslan Zenin wrote:
    1. I have to manually define metadata file (I can't use JBuilder Kodo
    plugin it can't generate one for me when I want inner class to be JDO
    persistent)Yes, this is a limitation of Kodo's JBuilder integration currently.
    2. What name of .jdo file should be? I tried both "ClassB.jdo" and
    "ClassA.jdo" with no success... In JBiulder there is a KODO DataBase
    schema tool that complains that it can't find metadata for the file (see
    at the end trace stack:Well, you can certainly put it in the packagename.jdo file if you want
    to go that route. Otherwise, you can define it in a file named
    "ClassA$ClassB.jdo" (assuming that the IDE will allow you to create a
    file with a '$' character in it).
    3. Here is my metadata file content, is it correct?Yes, that looks correct.
    <?xml version="1.0"?>
    <jdo>
    <package name="com.test">
    <class name="ClassA$ClassB"/>
    </package>
    </jdo>
    ==========
    Mon Mar 31 15:47:38 SGT 2003: ERROR: javax.jdo.JDOFatalUserException: Type
    "class com.test.ClassA$ClassB" does not have JDO metadata.
    Mon Mar 31 15:47:38 SGT 2003: ERROR: javax.jdo.JDOFatalUserException: Type
    "class com.test.ClassA$ClassB" does not have JDO metadata.
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:108)
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java:85)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.java:802)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321)
         at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1136)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.execute(SchemaToolDialog.java:236)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.execute(SchemaToolDialog.java:217)
         at
    com.solarmetric.modules.integration.ui.SchemaToolDialog.actionPerformed(SchemaToolDialog.java:202)
         at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.Dialog.show(Dialog.java:380)
         at com.borland.primetime.ui.DefaultDialog.show(Unknown Source)
         at java.awt.Component.show(Component.java:946)
         at java.awt.Component.setVisible(Component.java:903)
         at com.borland.primetime.ui.DefaultDialog.showModalDialog(Unknown Source)
         at com.borland.primetime.ui.DefaultDialog.showModalDialog(Unknown Source)
         at
    com.solarmetric.modules.integration.jbuilder.SchemaToolAction.perform(SchemaToolAction.java:60)
         at
    com.solarmetric.modules.integration.jbuilder.SafeBrowserAction.actionPerformed(SafeBrowserAction.java:72)
         at com.borland.primetime.ide.BrowserAction.actionPerformed(Unknown Source)
         at com.borland.primetime.actions.r.actionPerformed(Unknown Source)
         at
    javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
         at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
         at
    java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    ==============
    best regards,
    Ruslan Zenin
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • Windows xp install -- black screen with no cursor

    I've seen a number of posts about Boot Camp installation problems involving a black screen with a blinking cursor, but my problem is simply with a black screen. On my MacBook Pro 15" Core 2 Duo (graphics card: ATY,RadeonX1600) I'm able to partition t

  • New messages not visible in Mail

    I use Mail for all of my gmail accounts. Recently I noticed that there were no new messages appearing in the Inbox for my principle, general purpose gmail account. Furthermore, the circular array of 'rotating' grey rectangles at the right hand side o

  • Meetingplace express 2.1.1.2

    Hello, Meetingplace (2.1.1.2) express is not sending emails to external email address, but internaly email alerts working fine. any suggestion about this issue. Thanks Sajeel.

  • SPLIT x2 Docking message

    I keep getting a "Safely Remove" warning after safely removing on my Split X2. Why? And how do I remedy?

  • Print PDF from http URL

    I have a project wherein a piece of it will require me to retrieve a PDF file from a http URL (i.e. http://www.somewebsite.com/test.pdf) and print the PDF.  I've been looking for examples of how to do this but I'm not finding any. Is the only way to