How to map an object to its ID in a table?

Here is my situation:
class Foo {
  private Bar bar;
}How to map the Bar object into a DB table column of its ID on the ORM mapping file?
Thanks very much in advance.

Never mind. I have solved this issue myself.
Message was edited by:
vwuvancouver

Similar Messages

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • How to move an object with its animation path, without adding a new keyframe?

    Hi,
    If I create an object which has a keyframe animation, how can I change its location/scale without adding new keyframes? That is, I want to move the whole thing with all its animations & keyframes as a single entity.
    thanks
    Arun

    Hi,
    big thanks for that. Unless Im doing something stupid when I did that it made a new copy of the object but did allow me to place that new instance elsewhere.
    Is there any way just to move an object and its path without making a new copy?
    All the best
    Arun

  • How to map development object with quality object

    Hi
       I have problem regarding to mapping development object with quality  object  i.e the  development object will be order_dev  and quality object will be order_ qa ..i have to map this two wat is the process..
    thanku

    You have an object in QA and not in Dev....you want to map this QA object with an object in Dev.....create a same object in DEV and then do the mapping....then transport.....you should have both the objects in both the environments.
    When you say map...i assume it to be the mapping program (message/ XSLT/ JAVA)
    Regards,
    Abhishek.

  • How to find an object from its ID in Integration Repository

    When trying to import a package, I get an error
    "Internal error when importing object 553afdf1-c83d-11d9-871d-0007e9102256....
    I have tried to find the object using the Object->Find... menu item, but selecting Object ID in the attributes field and entering this string does not return any hits.
    Am I doing this right, or is there another way to find the object?
    Kind Regards,
    Tony.

    I am using PI7.0, If i get your question very well: I think there is no option to get an object with Id, all options are:
    Name,Changed on, Changed by,... etc.
    Pls check again.
    BR,
    Alok

  • How to extend an object along its direction

    Here is my object, I've AI CS5
    Thank you!

    With SmartGuides on:
    1. Tap A to invoke the white pointer: Select one of the anchorPoints you want to move.
    2 Tap S to invoke the Scale Tool: Letting SmartGuides sense the path, click (don;t drag) anywhere some distance along the straight segment that you want to lengthen, This sets the transformation anchor there.
    3. ScaleTool: Mousedown on the selected anchorPoint and drag. A guide will appear parallel to the segment radiating from where you set the transformaton anchor. (Remember, you are scaling, not moving.)
    JET

  • How to remove an object from its background with mocha

    Hello,
    I have th Mocha version that comes along with Adobe After Effects CS5.5. Does this cersion has the remove tool?
    Thank you..

    You can track things, create masks, export the masks, remove backgrounds, and do a bunch of really amazing things with the version of Mocha that comes with AE, you just can't drop a clip into the included version of Mocha and render out a composite. There are also other goodies in Mocha Pro.
    I'd suggest that you go through a fist full of Mocha tutorials. There are a bunch of good ones on the Imagineer Systems site. Try filtering the results by Mocha AE.

  • Blaze DS - Mapping java object into another java application

    Good afternoon,
    I realized a Client-Server application. Server is Java-based. Client is Flex. Server services are accessible through Blaze DS.
    Now I have some Java clients that need to access server services. Blaze DS permits to do it simply but I don't know how to map java objects as I do using [RemoteClass(alias.....)] construct at Actionscript side.
    For example, server sends a MyObjectType and client receives an ASObject.
    Is there a way to map java MyObjectType automatically at destination?
    Thank you for help and sorry for poor english.
    Regards, Francesco

    xstream will convert any given java object to xml. Not sure what support it offers for schemas.
    http://xstream.codehaus.org/

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • How to attach an object back to its source in a master page?

    Hello,
    on a content page I can access objects from the assigned master page using the Ctrl+Shift+LeftClick combination. By doing so I detach many attributes of this object from the master page specifications. How to reset an object and attach it back to the source object of the master page?
    If you are a PowerPoint user, the option reapply slide layout may be familiar to you (this function resets all format overrides to the master settings). I am looking for a similar function in InDesign.

    I really looking for a way to change the position of the second and third text boxes relative to other items on the page.
    An overriden master page item will still respond to its master's position if its position on the page after overriding hasn't been changed. So, you can have the "directions" box on the master page, override it, add text, and as long as you don't move its x, y position in the process of adding text, it can be moved via the master page in the future. The key is not to move it in the editing process.
    Same goes for other attributes. If the fill color is red, you can change it to gray from its master later, as long as you don't change the page item's fill to pink in between.
    It's also possible to match a changed page item's attributes to its master via scripting.
    So for example if you had a 3" text box on the master and there was 100 pages with the text box, and in the editing process 50 had their width changed to varying widths and later you decided you needed a 4"width— a simple script could loop through all the pages and reset the changed widths to match the master's new 4" width.

  • How to map a collection of object in TopLink?

    For (simple) example, I've a XSD that defines:
    <xsd:complexType name="AttachmentType">
    <xsd:sequence>
    <xsd:element name="docID" nillable="false" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="MyDocType">
    <xsd:sequence>
    <xsd:element name="attachment" nillable="true" minOccurs="0"
    maxOccurs="unbounded" type="tns:AttachmentType"/>     
    </xsd:sequence>
    </xsd:complexType>
    This XSD is referenced by a WSDL. Using JDeveloper to generate a Java Web Service using the WSDL and will get the following classes:
    public class AttachmentType implements java.io.Serializable
    protected java.lang.String docID;
    public AttachmentType() {    }
    public java.lang.String getDocID() {        return docID;    }
    public void setDocID(java.lang.String docID) {        this.docID = docID;    }
    public class MyDocType implements java.io.Serializable
    protected AttachmentType[] attachment;
    public MyDocType () {    }
    public AttachmentType[] getAttachment() {        return attachment;    }
    public void setAttachment(AttachmentType[] attachment)
    this.attachment = attachment;
    Now I want to generate a XML document from MyDocType. I use TopLink (JAXB) to do the mapping. However, how to map the 'attachment' of type AttachmentType[]? TopLink seems only allowing List/Set/Collection container options.
    Anyone can help?
    Note: I have to use the classes generated from WSDL.
    Thanks!!

    Thanks. I'm using TopLink Workbench for the mapping
    and have no idea on how to specify the XML
    transformation mapping for array attribute. Can you
    tell me more?I was putting together an example of the transformation mapping but came up with a better way. It turns out that a transformation mapping isn't ideal because you have to take over some of the responsibility for converting XML to objects. A better solution is to intercept the calls to the getter and setter for the AttachmentType[] and convert between an Array and List. Just map the Array as a composite collection in the workbench and customize the attachment attribute mapping in code.
    Each mapping in TopLink has Accessor object responsible for getting and setting values in objects. If you choose method or direct access the mapping will have a different Accessor class. So the solution is to use an Accessor that converts the List TopLink builds into an Array of the correct type on set. On get, the Accessor creates a List from the Array.
    You can introduce a custom Accessor using an After Load method. I've put a complete example up on my googlepages account[1]. The key code is listed below. Note that this code assumes you're using direct instance variable access. Also, this code works with TopLink 10.1.3.2 and the TopLink 11 preview. It won't work with previous versions.
    The After Load class that changes the mapping accessor:
    public class MyDocCustomizer {
         public static void customize(ClassDescriptor descriptor) {
              XMLCompositeCollectionMapping mapping = (XMLCompositeCollectionMapping)
                   descriptor.getMappingForAttributeName("attachment");
              InstanceVariableAttributeAccessor existingAccessor =
                   (InstanceVariableAttributeAccessor) mapping.getAttributeAccessor();
              ListArrayTransformationAccessor transformationAccessor =
                   new ListArrayTransformationAccessor(AttachmentType.class, "attachment");
              transformationAccessor.initializeAttributes(descriptor.getJavaClass());
              mapping.setAttributeAccessor(transformationAccessor);
    }The custom InstanceVariableAccessor subclass:
    public class ListArrayTransformationAccessor extends
              InstanceVariableAttributeAccessor {
         private Class arrayClass;
         public ListArrayTransformationAccessor(Class arrayClass, String attributeName) {
              super();
              this.arrayClass = arrayClass;
              this.setAttributeName(attributeName);
         public Object getAttributeValueFromObject(Object anObject)
                   throws DescriptorException {
              Object[] attributeValueFromObject =
                   (Object[]) super.getAttributeValueFromObject(anObject);
              return Arrays.asList(attributeValueFromObject);
         public void setAttributeValueInObject(Object anObject, Object value)
                   throws DescriptorException {
              List collection = (List)value;
              Object[] array = (Object[]) Array.newInstance(arrayClass, collection.size());
              for (int i = 0; i < collection.size(); i++) {
                   Object element = collection.get(i);
                   Array.set(array, i, element);
              super.setAttributeValueInObject(anObject, array);
    }--Shaun
    http://ontoplink.blogspot.com
    [1] http://shaunmsmith.googlepages.com/Forum-519205-OXM-Array.zip

  • How to Map the Unit field  in case of DSO and INFOCUBE

    Dear Experts,
    I have a issue ,Please help me to solve this
    I have DSO as provider ,
    And, i have to map transformations  btw the Datasource and DSO.
    In generic Data source,  i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
    and normal Quantity fields  like KWMNG,OAUME(quantity related),OAUWE (value related).
    In DSO data fields as Key figure info objects like  0Quantity (which have 0Unit as unit of measure) and some other  key figures which have there respective unit of measure in info object  definition.
    So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
    (How it will be for both DSO and Info cube is there any difference?)
    Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PM

    Navasamol ,
    If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
    what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
    And i have  seen the Quantity fields  and there respective unit fields are mapped directly  to key figure info object
    in case of Info cube . Its working fine .
    If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
    why this difference btw DSO and Info cube can any one explain me in detail.
    Expecting your valuable suggestions.
    Thanks & Regards,
    Anjunath Naidu
    Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM

  • How to set a Object value by JDI

    How to set a Object value using JDI?
    For example:
    class User{
      private String name;
      private String id;
    set and get method;
    public static void main(String[] args) throws Exception {
            VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
            List<AttachingConnector> connectors = vmm.attachingConnectors();
            SocketAttachingConnector sac = null;
            for (AttachingConnector ac : connectors) {
                if (ac instanceof SocketAttachingConnector) {
                    sac = (SocketAttachingConnector) ac;
                    break;
            if (sac == null) {
                System.out.println("JDI error");
                return;
            Map<String, Connector.Argument> arguments = sac.defaultArguments();
            Connector.Argument hostArg = arguments.get("hostname");
            Connector.Argument portArg = arguments.get("port");
            hostArg.setValue(HOST);
            portArg.setValue(String.valueOf(PORT));
            vmMachine = sac.attach(arguments);
            List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
            if (classesByName == null || classesByName.size() == 0) {
                System.out.println("No class found");
                return;
            ReferenceType rt = classesByName.get(0);
            List<Method> methodsByName = rt.methodsByName(METHODNAME);
            if (methodsByName == null || methodsByName.size() == 0) {
                System.out.println("No method found");
                return;
            Method method = methodsByName.get(0);
    I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
    so how to set its value by the client, and I can not got the User bean at client.
    I know the basic type filed value changed as follows:
    Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
    stackFrame.thisObject().setValue(field, newValue);
    But a Object , how can I change its value.
    Thanks Advanced.

    ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
    /Staffan

  • How to UnLock the object in Integration Repository of XI.

    Hi Experts, when i try to edit the object in IR, i am getting following message.
    Object Message Mapping EmpResponce_MM | urn:pas.com/neh currently being edited by user 9SGRANDHI.
    Note: it is saying my ID itself, i logged off and logged in, still its showing same mesage, how to unlock the object in Integration Repository of XI.
    please help me out.
    thanks
    siva

    Hi,
    Go to Home page of XI,there u will have Administrator,select it and click on localobjects.There u will have IR and ID in that select lockoverview and remove ur lock.
    this authorization will be given to basis guys check u have it or not.
    Regards,
    Phani
    Reward points if helpful

  • How to map CMP field to an Oracle XMLType?

    How can we map a WLS700 EJB2.0 CMP field to an Oracle XMLType?
    Is there some special configuration needed in the deployment descriptors?
    Thanx,
    Nico

    Hi
    System will prospose the existing object..just check if that the relavent and meaning ful object....if not create your own infoobject and map it...its not mandatory to use the proposed one..as its not the standard one..
    Create a new object and include in the infosource and then map in transfer rule
    Regards
    Ram
    Message was edited by: Ram

Maybe you are looking for