Example of mapping Attributes to columns

hi,
i have a Customer class with an Adress object as Attribute.
i am looking for an example or proposals how i can map all this in a rational databse .
thank you.
znouri

could u explain in detail waht exactly r u looking for.
Are u looking ot create a database or connecting/inserting data in to the relational database

Similar Messages

  • Row to column mapping and  combining columns

    Hi
    I have one issue i want to concatenating some columns and map row as columns like below.I am giving one ex and have more than 1000 employees like this
    Example
    {Srno  Eno Ename job datestart}
    {1 01 jack------clerk------01-Jan-2008}
    { 2         01   jack-----snrclerk----01-Jun-2009}
    { 3         01    jack ---- officer------- 01-Jan-2010}
    I want to display the row to columan mapping like first row concatenated as col2 and second row for col2 column etc
    {eMpno------- col1 ------------------co12----------------------------------col3}
    {0101 jackclerk 01-Jan-2008---jacksnrclerk01-Jun-2009------01jackofficer01-Jan-2010}
    rgds
    ramya
    Edited by: user11243021 on Sep 7, 2010 5:21 AM

    with t as (
               select 1 srno,'01' eno,'jack' ename,'clerk' job,to_date('01-Jan-2008','dd-mon-yyyy') datestart from dual union all
               select 2 srno,'01' eno,'jack' ename,'snrclerk' job,to_date('01-Jun-2009','dd-mon-yyyy') datestart from dual union all
               select 3 srno,'01' eno,'jack' ename,'officer' job,to_date('01-Jan-2010','dd-mon-yyyy') datestart from dual
              ) -- end of data sample
    select  eno,
            max(
                case srno
                  when 1 then ename || ' ' || job || to_char(datestart,' dd-Mon-yyyy')
                end
               ) col1,
            max(
                case srno
                  when 2 then ename || ' ' || job || to_char(datestart,' dd-Mon-yyyy')
                end
               ) col2,
            max(
                case srno
                  when 3 then ename || ' ' || job || to_char(datestart,' dd-Mon-yyyy')
                end
               ) col3
      from  t
      group by eno
    EN COL1                      COL2                      COL3
    01 jack clerk 01-Jan-2008    jack snrclerk 01-Jun-2009 jack officer 01-Jan-2010
    SQL> SY.

  • How to set "Image Map" attribute to "Polygon" via javascript in Illustrator CS5

    Ok, so I have this little script I've written that I want to use to go through a bunch of paths in a document and give each path a url for use in an image map. I want each link to be a Polygon because, well, let's face it, "Rectangle" is useless 99% of the time. Obviously, the way you would do this manually would be to open the Attributes panel and set the Image Map attribute to Polygon and type a URL in the URL field. Fine. Easy enough. However, when scripting the process, it seems one can only set the URL (or the uRL [sic] as documented in the javascript reference) of the PathItem. In other words:
    pathItem.uRL = "http://someurlfor.me";
    Unfortunately, this defaults the "Image Map" attribute to "Rectangle" (which we already know is useless 99% of the time.) SO, anyone out there know how to change that attribute to "Polygon?"
    Btw, I'm on Illustrator CS5 and have been using this reference:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    Thanks,
    -Matt

    We found that with the following setting, the problem is almost solved :
    theme.setQueryWindowMultiplier(1);
    theme.enableAutoWholeImage(true);
    We still have a problem : a portion of the base map appears black most of the time, on Blackberry only (Opera Mini) ... like 1/5 of the map ... the right side ... any idea ?
    Thanks,
    JP

  • Mapping attributes between two resources

    Hi All,
    Is there a way to map attributes of one resource to another?
    If so let me know how it can be done?
    regards,
    Zebra8

    Hi,
    Can you please be more clear in your reply. I am not able to get what you want to say.
    Thanks,
    Shankar

  • How to place attribute at column in query designer

    Hi Experts,
                     I have to place attribute in column panel, but it is not possible. Is there any solution for this problem. Attribute is already created. please help me to solve this.

    Hi,
    Create a formula Variable with processing type as Replacement path based on the characteristic (which has the Attribute).
    In the Replacement path options -> Select Replace with Attribute value and choose the required Attribute.
    Create a CKF or New formula and drag the formula variable to the Formula editor. Save and execute the report.
    Regards,
    Hari.
    Edited by: Hari Krishnan K on Jul 27, 2010 5:56 PM
    Edited by: Hari Krishnan K on Jul 27, 2010 9:18 PM

  • URLATTRIBUTE Mapped Attribute

    Hello All,
    Has anyone successfully used the URLAttribute Mapped attribute in BPM 11g (PS4FP)? I believe it generates a clickable URL in the BPM worklist or workspace. Is that how its supposed to work? There is no documentation on this anywhere.
    thanks,
    Vikram
    Edited by: Vikram Bailur on Mar 19, 2012 12:24 AM

    bump.

  • Cannot modify datatype of mapped attribute

    com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(DisplayEmpLeave.Year): must not modify the datatype of a mapped attribute
    IWDAttributeInfo attinfo=wdContext.getNodeInfo().getAttribute("Year"); ISimpleTypeModifiable modinfo=attinfo.getModifiableSimpleType();
    IModifiableSimpleValueSet valset=modinfo.getSVServices().getModifiableSimpleValueSet();

    Hi,
    It is not possible to map the this variable to a controller.
    So if u remove the mapping, the code will work.
    For that, right click the atrribute <b>"Year"</b>->Delete Context Mapping.
    If u want to pass the value to controller, create one context variable of type string, map it to controller and get the value from the variable <b>Year</b> to this
    Regards
    Fahad Hamsa

  • Non-mapped attributes not merging!!

    I found this on webgain's web site (http://www.webgain.com/download/toplink/patches/toplink_301.html). This is exactly what I am talking about. Can somebody help with this? I have a case where I actually make a change to a mapped value, but the unmapped values are lost.
    26601
    Non-mapped attributes not merged in UnitOfWork. Previously, the UnitOfWork would merge non-persistent attributes on commit.
    With the introduction of ChangeSets in 3.0, if changes were made to only non-mapped attributes, then this was considered no change - no merge would take place and no PostMerge event would be thrown. This has been changed back to the TopLink 2.5.1 behaviour - non-mapped attributes will now be merged, and will trigger PostMerge events.

    Nate,
    I first off want to clarify that TopLink does not manage un-mapped attributes in any way. The change-set calculation and merge from the working copy into the shared cache copy only applies to mapped attributes.
    If you would like to have un-mapped attributes carried through your UnitOfWork interactions you will need to implement a DescriptorEventListener and register it with the descriptor's event manager (typically in an after-load method).
    The patch mentioned was for the handling of these events. If you have implemented such a listener and are not seeing the correct method calls then we have an issue. In this case let us know what version of TopLink you are using and what the specific scenario where you are not getting the behavior you expect.
    Doug Clarke

  • XML structure - mapping one Oracle column to many XML attributes

    Hi,
    I need to insert data into EMP table reading from xml file and this is how the file would look like....
    <?xml version='1.0'?>
    <ROWSET>
    <ROW num="1">
    <EMPLOYEE_ID>7369</EMPLOYEE_ID>
    <LAST_NAME>Smith</LAST_NAME>
    <FIRST_NAME>JOHN</FIRST_NAME>
    <PHONE> 905000123</PHONE>
    <PHONE> 905000456</PHONE>
    <PHONE> 905000789</PHONE> ...... n
    (There could be many phone numbers in the xml file and I need to concatenate all the numbers and insert in the PHONE column of emp table)
    <SALARY>800</SALARY>
    </ROW>
    <!-- additional rows ... -->
    </ROWSET>
    I am new to XML and would to know the set of lines required to read the data from xml and insert into EMP table. All this is for Oracle 10g R2.
    Please let me know solution using XSU if possible.

    Hi,
    Chk this:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Re: Conversion of source XML structure to single string using PI 7.1
    Thanks
    Amit

  • OX Mapping attributes

    Hi,
    Could someone tell me how to map the value from an object attribute to a xml attribute when using 10.1.3 to perform ObjectXML.
    I am able to get my XML Unmarshalled, make changes and Marshal it, but it appears the tag attributes are not coming through
    eg
    i get
    <phone-number>12345</phone-number>
    <phone-number>67890</phone-number>
    and i want
    <phone-number type="home">12345</phone-number>
    <phone-number type="work">67890</phone-number>
    how do i do it?
    Thanks

    Hi Martyn,
    Mapping an object attribute to XML attribute is similar to mapping an object attribute to an XML text node. The difference is in the XPath specified. To indicate an XML attribute append an "@" to the attribute name when specifying the XPath (see the code example below).
    XMLDescriptor desc = new XMLDescriptor();
    desc.setJavaClass(PhoneNumber.class);
    desc.setDefaultRootElement("phone-number");
    XMLDirectMapping typeMapping = new XMLDirectMapping();
    typeMapping.setAttributeName("type");
    typeMapping.setXPath("@type");
    desc.addMapping(typeMapping);
    XMLDirectMapping numberMapping = new XMLDirectMapping();
    numberMapping.setAttributeName("number");
    numberMapping.setXPath("text()");
    desc.addMapping(numberMapping);This mapping can also be created in the TopLink Mapping Workbench by selecting the XML attribute using the XPath Chooser GUI.
    If your mapping is correct and you are still not seeing the attribute when you marshal the object to XML there are 2 possible causes:
    1. You have marked the mapping as read only. In this case TopLink will read the attribute value during the unmarshal operation but will not write the attribute value during the marshal operation.
    2. The corresponding value in the object model is null, null values in the object model are not written out when the object is marshalled to XML.
    -Blaise

  • Mapping attributes to configurator attributes

    Hi, I'm trying to find an example of how I can map pricing attributes to configurator attributes so that I can use the configurator attributes withing pricing formulas.
    I can create the pricing attributes ok, it's the specific entry in the attribute mapping screen I can not figure out.
    Does anyone have an example I coulkd use for reference?
    Thanks

    could u explain in detail waht exactly r u looking for.
    Are u looking ot create a database or connecting/inserting data in to the relational database

  • Mapping Attribute Dim in Essbase

    Hi,
    I think this is bit funky requirement part of my enhancement project.V 11.1.2.1
    i have an essbase cube with a hierarchy called Product where the level 0 is PartNumber. I have an attribute dimension call ProdType which is coming from a different mapping table and different source with PC(Product Code) which is level 1 in my hierarchy and my requirement is to map that attribute to one level down with corresponding PartNumber.
    Product
    -------PS(Level 2)
    ----PC(Level 1)
    ---PN(Level 0)
    ---PN1(Level 0)
    File1 Extract gives me the full product hierarchy so i am building the hierarchy using Build Rule where as second file(File2) i am getting has only PC(level1) of product hierarchy with attribute column ProdType. BUt my requirement is to map the attribute value to all the PartNumber under that ProductCode as Attribute can not be mapped to upper level members. Is their a way in essbase to puss the attribute mapping to level0 where as the file has level1 mapping.
    Note: we do not want to make any change from DWH side so trying to achieve this in Hyperion
    any thought or way to achieve this?
    -KP

    Got some idea and that is working for me if i am mapping manually , there is something call Association where we can map the Attribute dimension member to any level of base dimension. I am still working on how to map the association using Dimension Build Rule. i can see the Field properties to map as UDA,formula etc but don't see Association in that window.
    any suggestion will be helpful.
    -KP

  • Comp. Primary key class-field mapping to DB columns problem.(EJB 2.0 CMP)

    Hi!
    I have deal with EJB 2.0 CMP bean.
    I have a composite PK so use the java class to store it. And there is a corresponding field in the Entity Bean with its primary key class type.
    The problem is: when deployment tool creates sql query for the findByPrimaryKey(PKClass ck)
    where ck is an object with 3 fielde : a_id, b_id, c_id.
    it says:
    <sql>SELECT "ck" FROM "MyTable" WHERE "ck" = ? </sql>
    And it means by the "ck" simple a column in DB but NOT the composite key which has to be splited into 3 different fields. So the container can't do the proper mapping.
    Does anyone know solutions?

    I was wrong about primary key class fields, take a look at Ejb2.0 Specification (10.8.2):
    The primary key class must be public, and must have a public constructor with no parameters.
    All fields in the primary key class must be declared as public.
    The names of the fields in the primary key class must be a subset of the names of the container-managed
    fields. (This allows the container to extract the primary key fields from an instance�s container-managed
    fields, and vice versa.)
    Right now I'm using BMP and I don't have this problems. Primary keys, calculated fields and types not supported by the DB can be easily achieved. But I understand your interest on CMP, is clearly evolving!

  • Mapping attributes not under nodes

    Hi
    If I create an attribute in the component controller wihtout a node, then can it be mapped to a view?
    On trying to do so it gives an error.
    Thanks
    Pushpraj

    Hi Pushpraj,
    You cant map those attributes to a view from the component controller. You can only map node and its attributes
    Regards
    Sarath

  • Issue while mapping two entity column into one entity column

    Not able to succeed with when trying to join 2 entity columns to an entity.
    Entity A Id, AName, ADesc, AQty
    Entity B Id, AName, BQty
    Entity C Id, AName, CQty
    Mapping Entity A to Entity B & Entity C with column reference, not able to succeed with two joins.
    EntityA
    @OneToMany
    @Column(name = "ANAME")
    private List<EntityB> bName = new ArrayList();
    private List<EntityC> cName = new ArrayList();
    EntityB
    @ManyToOne
    @JoinColumn(name = "ANAME")
    private EntityA enitityA;
    EntityC
    @ManyToOne
    @JoinColumn(name = "ANAME")
    private EntityA enitityA;
    Join work only for EntityB, not for EntityC...
    Please, give me your suggestions.

    A few issues:
    - You need the @OneToMany on both fields, not just the first one
    - A @OneToMany cannot use an @Column, it should use a mappedBy="entityA"
    See,
    http://en.wikibooks.org/wiki/Java_Persistence/OneToMany

Maybe you are looking for

  • Need to turn on 51 event listeners

    I'm trying to upgrade an old AS2 Flash that had 51 buttons on it that were simulating the buttons on a keypad. They each had a script on them with an onClick action. Since they are named sequentially, b1 through b51, I thought I could use a for loop

  • Image in a dynpro.

    Is possible?

  • I can't log into my main account with my password, always gets me back to the log-in screen after upgrading to 10.7.5

    After my routine software update to 10.7.5, I can't log into my main log-in id. Whenever I put my password in, it takes me back to the log-in screen. I'm sure of the password not being wrong because i can access my other admin accounts from which i c

  • Recover datafile problem

    Hi, I am using Oracle 7.3.4 on NT 4. I am having problem with one of my rollback segments call HISTORY which contain two datafiles in e:\rollback\history.ora and f:\rollback\history.ora This rollback segment was used for transfer old data to HISTORY

  • Performance issue of the query

    Hi All, Please help me to avoid sequential access on the table VBAK. as i am using this query on VBAK,VBUK,VBPA and VBFA. the query as follows. How to improve the performance of this query,its very urgent please give me the sample query if possible.