Mapping multiple objects to a same db table

Can Kodo support mapping of multiple objects to a same table? For example,
we have two objects PersAutoPolicy and InsuredOrPrinciple, and we want to
map them to a same db table.

Let me give a use case:
class DO1 {
long id;
String data1;
class DO2 {
long id;
String data2;
Table table1 columns:
id
data1
data2
I want to map DO1 and DO2 to table1.
Is this possible??
Rick
>>>>
Martin van Dijken wrote:
I'm fairly certain this works. We've got a two objects which both have a
collection of another kind of object. I had the two collections mapped to
the same table and that gave no problem at all. You'd have to wait for Kodo
confirmation to be sure, but I'm 80% certain it can work.
Martin
"Rick Koo" <[email protected]> schreef in bericht
news:b6rjcg$60d$[email protected]..
Can Kodo support mapping of multiple objects to a same table? For example,
we have two objects PersAutoPolicy and InsuredOrPrinciple, and we want to
map them to a same db table.

Similar Messages

  • Version 4 Bug - Multiple Object Editors of Same Object on Single Click

    Hi Jeff,
    thanks for your reply. You have missed that rule because you don't use SQL Developer for development. But never mind, lets go through it...
    1) Of course I have both options activated (all preferences were imported from previous version). The difference between previous version is that when you click on the SAME table multiple times - in the old version, it opened the table just once and in case you had another tab active, it swithed to the tab where the table was opened. So to have it clear, in the old version when you have table A and table B, both opened in separate tab and the focus was on table B, when you clicked on table A (in the tree) it activated tab with table A. It didn't create new tab with table A. Of course - why would I want to have multiple tabs opened with the same table??? In current version clicking on the same table multiple times, opens multiple tabs with the same table.
    This is also the reason why it sometimes openes a table multiple times even when you click it just once. This you cannot simulate because you are probably connecting to some local DB when you have perfect connection. Activate the autopin function and connect to different DBs all over the world and you will see what I mean. Right now, I have opened a connection and got 3 tabs opened, just after a single click on a table.
    2) Fetch size is again taken from previous version of SQL Developer and is set to 50. PgUp and PgDown are not working at all. I am talking about scrolling with a mouse wheel. In the old version it is working normally as expected. In this version if you scroll using a mouse wheel, the scroll speed is about 1 or even 0.5 lines per wheel round - so you can even not use a mouse wheel for scrolling! On all other places in this new release (connection tree, packages, ...) the scrolling is working normally, in the table it is unusable.
    3) I don't say it is on every table and every click. I cannot tell you how often is it because I am not using the new version. I am quite sure this is dependent on the connection speed maybe connectin quality. The difference between previous version is that in the previous version, refresh always worked. This particular issue cannot be solved by testing and searching for some rule when it happens. You must check the code and see when you display it!
    4) My screen resolution is 1920x1200, but that is only because I have an external monitor connected to my laptop. My laptop resolution is only 1366x768. Switch to this resolution and open the View menu.
    New worksheet - yes, this is exactly what I mean. I have planty of connections, for sure over 100 - but this is irelevant. Whenever you do a menu which can grow, you need to do it scrollable!!!
    I am not sure what you mean by Flyout menus, but I am scared only to hear about it

    Screen resolution, no scrolling on menus - that's a bug. Severity 2, a bad one, as you have noticed, and we'll try to make sure it's addressed for version 4.0.
    The other issue isn't as straightforward as you insinuate. I know you don't care about the particulars or why you might see this issue, so I won't bore you. But, we are aware that this is still coming up more frequently that it should, and we're on a big bug hunt to eradicate the behavior completely. It's not a simple thing, so it will more likely be incremental improvements. That being said, we are seeing it MUCH less than in previous versions of the tool.

  • Is it possible to specify width in pixels for multiple objects at the same time in Illustrator CS5?

    Illustrator has the 'Transform Each' dialog, but it only allows you to scale multiple objects by specifying a percentage. Is there any way to specify the size in pixels?
    More specifically, imagine I have 10 rectangles on my canvas, and I want them all to be of a specific height. The rectangle position on the canvas matters, so I can't do the 'vertical align to top and then resize group height' trick - they need to be resized in place.

    @Mike: Thank you very much for the quick reply.
    Your suggestion does help, but there is still a gap. To be more specific, my rectangles are actually a bar chart, so the heigh of the ractangles is different and should remain unchanged. What I want to do is make each bar narrower to a specific pixel width. The Shape Options feature allows you to specify absolute dimensions, but it seems like you have to specify this for both the Width and Height - can't just do one unless I'm missing something. You can specify relative increase/decrease in pixels (which mostly solves my problem), but I have to calculate the pixel difference, usually fine unless I'm dealing with decimal pixels which I'd like to clean up and turn to clean pixels.
    A bit confused about your last point. What does 'select individually' mean? Is Ctrl Enter do anything different from just Enter?

  • Find(String pkey) method returns multiple object of the same row

    I'm not quite sure what i've done or havent done, but I've implemented updating a row using the em.persist(Object) method.....works great, but after i did that a few times the find(String pkey) method returns multiple copies of 1 row in the db
    here are two rows in the db
    personid(PK) firstName lastName
    1234 joe jones
    2345 rachel jones
    when i execute any query looking for people with the last name jones, ie
    select object(p) from Person p where p.lastName='jones'
    it returns multiple objects of each row ie
    1234 joe jones
    1234 joe jones
    1234 joe jones
    1234 joe jones
    2345 rachel jones
    2345 rachel jones
    2345 rachel jones
    2345 rachel jones
    There is only one row for both rachel and joe in the db, but why is the entity manager returning multiple objects of each, and how do i prevent that without using DISTINCT?
    Thanks for the help in advance

    Sorry, i forgot to mention i'm using ejb 3 and jboss

  • Multiple columns from the same dimension table as row labels performing slowly

    (Working with SSAS tabular)
    I'm trying to figure out what the approach should be for the following scenario:
    Lets say we have a Customer table. The table has columns such as account number, department number, name, salesperson, account manager, number of customers, delivery route, etc
    A user of the model could want to see any permutation of that information as the row labels. How should that be handled?
    What we've been doing so far is that the user adds each column they want into the "ROWS" section in Excel. This works fine with smaller tables (for example, "Department" table with a "Department Code" and "Department Name",
    but on large tables this quickly chokes. I understand why this is happening, I just haven't found a better way to accomplish the same thing.
    I can add a calculated column to the model through VS, but obviously this is unsupportable and unscalable when each person needs their own permutations of the data. Can something similar be done in Excel? 
    This question seems to be what I need:
    http://social.msdn.microsoft.com/Forums/en-US/97d1157a-1402-4227-b96a-79524401ddcd/mdx-query-performance-when-selecting-multiple-attributes-from-same-dimension?forum=sqlanalysisservices
    However I can't find any information on how to add those properties (is it a multidimensional-only thing?)

    Thanks for the help. Sorry but i'm a self-taught developer, and i may be missing some basics :)
    Anyway i've done what you suggested but i get this error:
    [nQSError: 15011]The dimension table source Dimension Services.DM_D_SERVIZI_SRV has an aggregate content specification that specifies the level Product. But the source mapping contains column COD_PRODUCT with a functional dependency association on a more detailed level .
    where:
    - DM_D_SERVIZI_SRV is the physical alias for the Service Dimension (and the name of the LTS too)
    - COD_PRODUCT is the leaf of the hierarchy, the physical primary key, but it hasnt to be included in the hierarchy
    Do i have to add another level with the primary key and hide it to the users?
    I tried to solve this going to the logical tables source properties, on the tab contents, setting "logical level" to null for the hierarchy, but i don't know if this is correct.
    Thanks

  • How can I map multiple sourcelines of the same position into 1 targetline?

    Hi all,
    I have a mapping problem in XI. I have no idea how to do the following mapping in the IR. My inputfile contains of 1 headerline and mulitple positions, and it has got multiple lines per position (with different data in it). The targetfile has got 1 headerline and multiple positionslines in which I have to "merge" the data from mulitple source-positionlines. It looks like this:
    source structure:
    headerdata
    position1 part1 (posnr, article number, quantity, articletype,...)
    position1 part2 (posnr, article price, payment conditions,...)
    position1 part3 (posnr, route,...)
    position2 part1
    etc
    target-structure:
    headerdata
    position1 (posnr, articlenr, quantity, articletype,price, payment conditions, route)
    position2 (same)
    position3 (same)
    etc
    Now I have to map part1,2 and 3 of the source structure to the 1 and the same target-line. I guess I would need some kind of lookup of the positionnumber in my message-mapping. But how do I do this? Copying the targetline 3 times is not an option as the target-utility only accepts the structure as described above....
    Hope anybody van help
    Thanks,
    William

    Hi,
    U can do it with UDF but it is more simpler with normal graphical mapping refer the following steps.
    1) To map header node for your example (position1) refer the following steps,
    posnr --> RemoveContext --> sort --> splitByValue(valueChange) --> CollapseContext --> position1
    2) for posnr in target side also u can use same mapping with some change  i.e.
    posnr --> RemoveContext --> sort --> splitByValue(valueChange) --> CollapseContext > splitByValue(EachValue)>posnr.
    3) For other node like articlenr, quantity, articletype,price, payment conditions, route refer the following mapping.
    1st do this.
    posnr --> RemoveContext --> sort --> splitByValue(valueChange) --> CollapseContext --> splitByValue(EachValue).
    then take IfWithOutElse function give 1st input as output of CollapseContext
    2nd input is value like articlenr, quantity, articletype,price, payment conditions or route(one of it) --> FormatByExample(using posnr --> RemoveContext --> sort --> splitByValue(valueChange)) node
    Output of IfWithOutElse give to  splitByValue(EachValue)
    Then give it to Target field.
    Regards,
    Rohit.
    reward points if helpful

  • How to add aggregation on multiple objects in a single webi table?

    Hi experts,
    I recently face an requirement that show a report table in a specific format.
    Let me show you in a simple example, let's say we have three dimensions and one measure. Product, Region, Quarter and Sales. When put these objects in an vertical table, it display data in this way.
    Product
    Region
    Quarter
    Sales
    TV
    North
    Q1
    37
    TV
    North
    Q2
    6
    TV
    North
    Q3
    4
    TV
    North
    Q4
    89
    TV
    East
    Q1
    81
    TV
    East
    Q2
    5
    TV
    East
    Q3
    32
    TV
    East
    Q4
    99
    Mobile
    North
    Q1
    13
    Mobile
    North
    Q2
    50
    Mobile
    North
    Q3
    95
    Mobile
    North
    Q4
    65
    Mobile
    East
    Q1
    58
    Mobile
    East
    Q2
    80
    Mobile
    East
    Q3
    76
    Mobile
    East
    Q4
    97
    However, we expect to append some aggregation value in this table as this.
    Product
    Region
    Quarter
    Sales
    TV
    North
    Q1
    37
    TV
    North
    Q2
    6
    TV
    North
    Q3
    4
    TV
    North
    Q4
    89
    TV
    East
    Q1
    81
    TV
    East
    Q2
    5
    TV
    East
    Q3
    32
    TV
    East
    Q4
    99
    Mobile
    North
    Q1
    13
    Mobile
    North
    Q2
    50
    Mobile
    North
    Q3
    95
    Mobile
    North
    Q4
    65
    Mobile
    East
    Q1
    58
    Mobile
    East
    Q2
    80
    Mobile
    East
    Q3
    76
    Mobile
    East
    Q4
    97
    TV
    All region
    Q1
    TV
    All region
    Q2
    TV
    All region
    Q3
    TV
    All region
    Q4
    Mobile
    All region
    Q1
    Mobile
    All region
    Q2
    Mobile
    All region
    Q3
    Mobile
    All region
    Q4
    All product
    North
    Q1
    All product
    North
    Q2
    All product
    North
    Q3
    All product
    North
    Q4
    All product
    East
    Q1
    All product
    East
    Q2
    All product
    East
    Q3
    All product
    East
    Q4
    All product
    All region
    Q1
    All product
    All region
    Q2
    All product
    All region
    Q3
    All product
    All region
    Q4
    As you see, we add "All region" and "All product" here, and combine them with real product, region and quarter value to show aggregations.
    Can anyone tell me how to get such table in webi? Can we implement it simply in report level?
    Best regards and thank you,
    Ocean

    Actually, this question is more focus on the report structure. I know the calculation context. In my first thought, I create the report similar with above one. The problem is in that case, there are a lot of duplicate rows. If you don't know what I am talking about, you can just take a little try in a real webi report sample.
    The key of the question is about how to put the aggregated "All product", "All region" rows in the right place with right frequency and in a single table. As I said, it is more about the format/structure problem.
    Any thought?

  • Removing a single object when multiple objects share the same name?

    The below code uses a for loop to make spheres as in this thread:
    http://forum.java.sun.com/thread.jspa?forumID=21&threadID=320945
    However, the name is always sphere. I have another part of the code that,
    using collision detection, removes a sphere using the tg.removeChild(); command when another sphere (created elsewhere) is
    within a set proximity. But how do I specify which sphere it should remove when they are all called 'sphere'? Can I use a
    object ID to get around this and if so, how?
        public void makeSpheres()
           Color3f lightColour = new Color3f(0.0f, 0.0f, 1.0f);    //Blue light
           Vector3f lightDirection = new Vector3f(4.0f, -7.0f, -12.0f);
           for (int i=0; i==5; i++)
               Sphere sphere = new Sphere(0.25f);
               BoundingSphere bounds = new BoundingSphere(new Point3d( getXCoords(), getYCoords(), getZCoords()), 100.0);
               DirectionalLight light = new DirectionalLight(lightColour, lightDirection);     //Each sphere has a blue light
               light.setInfluencingBounds(bounds);
               TransformGroup tg=new TransformGroup();  //Create new TG
               Transform3D transform=new Transform3D();
               Vector3f vector = new Vector3f(setXCoords(),setYCoords(),setZCoords());  //Set Position
               transform.setTranslation(vector);
               tg.setTransform(transform);            //Add sphere to scenegraph
               tg.addChild(sphere);
               Play2.objRoot.addChild(tg);
           }

    Basically, you get a reference to the object you click on through one of the Pick tools from the Pickfast api. Then you iterate over the scenegraph until you find the object your picktool returned. Then you remove it. Check out the examples at
    https://java3d.dev.java.net/binary-builds.html
    If there are a known finite number of spheres you can keep references to them in a list or a Switch.
    regards

  • Insert Single record multiple times in a same database table

    Hello Guys,
    I need your thoughts for below scenario...
    I have a data file with 14 colums, more than 10000 records and in below format
    Data File Format
    id name c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12
    Now my requirement is for each record in a data file I have to insert 12 records in my Interface table.
    Lets say if above file is a sample data file, I have to insert record in my Interface table lilke following
    Insert into Interface_table(a1,a2,a3) Values (id,name,c1)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c2)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c3)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c4)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c5)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c6)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c7)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c8)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c9)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c10)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c11)
    Insert into Interface_table(a1,a2,a3) Values (id,name,c12)
    After getting the data file, We have stored all the data in a Custom table. Now I need to Import these records into interface table (as mentioned earlier).
    Can any one suggest me what will be the best approach/practice to load the above data.
    any help on this is appreciated !!
    Thanks,
    Ab

    Hi,
    you mean like this?
    SQL> create table samp1(x number,y number);
    Table created.
    SQL> insert into samp1 select rownum,rownum from dual,(select level from dual connect by level<=12);
    12 rows created.
    SQL> select * from samp1;
             X          Y
             1          1
             2          2
             3          3
             4          4
             5          5
             6          6
             7          7
             8          8
             9          9
            10         10
            11         11
             X          Y
            12         12
    12 rows selected.

  • Can Numbers Display Multiple Views of the Same Table

    Hi,
    Excel and Appleworks both have a pull down tab on the vertical bar allowing multiple views into the same spreadsheet (table). Can Numbers do this?
    I have a set of calculations at the top of a spreadsheet that are based on years and years worth of data under the calculations (same column). I add data for each new event (the rows) and watch the calculations at the top of the data. Easy to do in Excel or Appleworks, but, I can't figure out how to do this in Numbers.
    Example:
    Spot1 Spot2
    Total 15 36
    Avg 5 12
    Jan 09 5 10
    Feb 09 6 20
    Mar 09 4 6
    Apr 09
    So... does Numbers allow the view "split" or multiple views that Excel and Appleworks allow?
    Thanks!
    Tom

    Question asked and responded several times:
    feature unavailable.
    For multiple views of a table there is an easy workaround as we may build a table whose every cells grab their contents from the 'master' one.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (VALLAURIS, France) mardi 1 septembre 2009 21:56:42

  • Multiple objects created in loop

    How do I create multiple objects for the same class with a loop
    I can hard code the names in but I want to allocate names from an array as the names
    ie
    BankAccount Acct(NameArray[0]) = new BankAccount();
    to get
    AcctFred.method();
    and access this in a loop
    I know if can be done but how??
    Regards, Cat

    Another variation:
       String[] names = { "Peter", "John", "Suzie" };
       // Creates the accounts and stores them in the hash table
       HashTable hAccounts = new HashTable();
       for (int i = 0; i < names.length; i++) {
          BankAccount account = new BankAccount(names);
    hAccounts.put(names[i], account);
    // Retrieves an account by its name
    Account account = (Account)hAccounts.get("John");
    Hope this helped,
    Regards.

  • Mapping Value Objects to Java Classes

    Hi All,
    I have one Java Class:
    public class MyBean {
        private ArrayList numbers;
    I have created one mapping value object for the same in Flex:
    package vo
        import mx.collections.ArrayCollection;
        [RemoteClass(alias="com.tcs.example.MyBean")]
        public class MyBean
            public function MyBean()
            public var numbers:ArrayCollection;
    but when I fetch the object using Remote Object, the returned object has "numbers" as null even though I'm returning from Java a filled ArrayList.
    Does any one know Why is it happening and what should I do for this.
    Thanks in advance

    Do you have getNumbers and setNumbers methods on your java bean?
    Try to activate the logs on blazeDS to see what's going on.

  • Blur out multiple objects in a single clip?

    I found a tutorial which explains how to blur an object in a frame by having the source clip on track1, a duplicate on track3 with gaussian blur and a shape on track 2 and then you do composite mode travel matte-luna on the clip on track 3, but how do you blur multiple objects in the same clip?

    How do you nest them? This is what I got:
    http://screencast.com/t/r7wanNGAi
    both circles have ADD composite modes.
    Result:
    http://screencast.com/t/l0nihfdBuV
    The left circle is correct but the right circle is white now.

  • Mapping an object using values from multiple tables

    Is it possible to use values looked up in other tables when mapping an object?
    For example: I have three tables. In table 1, I have fields for 'cityCode' and 'stateCode'. Table 2 is a state table which contains a list of stateCodes and corresponding stateIds. Table 3 is a city table with cityCodes listed by stateId (the city code is unique within the stateId but can be duplicated under other stateIds). Table 3 also contains the cityName for the matching cityCode/stateId pair.
    I am ultimately trying to match a cityName to a cityCode. I can't figure out how to tell toplink use the stateId returned when mapping Table 1 to Table 2 via stateCode when mapping cityCode in Table 1 to Table 3.
    Any help is greatly appreciated
    --matt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    What does your object model look like, do you have a single object with data from all three tables in it?
    <p>
    In general because the cardinality of the tables and usage does not match, I would not recommend using multiple tables to map this. Instead define a CityNameManager class that preloads and stores all of the city names for each state, (possible lazy initializing each set of cities per state). Your getCityName() method in your class would then just use this manager.
    <p>
    You could map the multiple tables but it may be difficult, and would most likely need to be read-only because I don't think you want to insert into the table2 or 3. You basically have a foreign key table1.stateCode => table2.stateCode, (table1.cityCode, table2.stateId) => (table3.cityCode, table3.stateId). You probably cannot define this in the Mapping Workbench, so would need to use the ClassDescriptor code API and an amendment method. If you can't get the foreign keys to work you can always use the descriptor multipleTableJoinExpression and define the join directly.
    <p>
    You could also define a OneToOneMapping to the CityName from your object using the cityCode and using a selectionCriteria() on your mapping to provide an expression that uses the getTable() method to join to the intermediate table.
    <p>
    <p>---
    <p>James Sutherland

  • Multiple objects to have the same rollover state at the same time (but link to different pages)

    Hi,
    I have a mac
    I would like to know how i can have multiple images with the same rollover states - but which show up at the same time on more than one image, (but each item to have its own linking property applied to it)?
    see image below: i want both box 'A' to pop with the same rollover state even if I'm hovering on just one of the boxes. But i want each of the boxes to link to different pages in my website.
    Ive tried grouping the images and moving them to their own layer, but the rollovers aren't 'linking' together on multiple objects
    help!
    thanks

    It's not, but you don't need that to achieve the behavior you've described. A1, a trigger, will have the states and hyperlink you desire. On rollover it will show its rollover state and will show its target container which will be directly on top of A2. It will look like a rollover state for A2. Repeat this for A2, B1 and B2 and I believe you achieve the behavior you've described. It's just a different way of approaching the problem (that happens to fit the tools available in Muse).

Maybe you are looking for

  • How to change a labels text which created at runtime?

    hi, i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app. my question is how can access (via id) and change a labels te

  • Problem with instaling CS5 wersion

    Hello, I can not install Adobe CS5. After entering the serial number the program does not allow me to continue with the installation. I changed the computer. From the previous computer I'he uninstalled Adobe and installed on new hardware. The first t

  • How do I access the Quicktime video editor in iMovie?

    I'm trying to access the Quicktime video editor (the one that allowed you to sharpen your videos, among other adjustments) that used to be there in iMovie. I'm running iMovie 10.0.5 on OS X Mavericks 10.9.5 and can't seem to find it.

  • Ethernet plugs and unplugs very quickly on Airport Extreme

    Basically what happens is the ethernet connects and disconnects continuously and at a really quick pace so the base station goes crazy. The status signals jump from 2 to 3 a nd viceversa along with the ethernet unplugging and plugging and it's extrem

  • Force a column in the query output  for FYPD  when no data exists

    Hi , I have a requirement, data available in the cube <b>FYPD-----Costcenter---- Emp#----StartPD---EndPd-- Amt</b> 2007001-----123456 789---2007004-2008012-- $10 In the variable input screen FYPD range is entered ex: 2007001 - 200704 expected report