About o-r mapping

Hi all,
I have two questions when creating database scheme:
1, kodo use a default FlatInheritanceMapping to mapping class inheritance
hierachy to a RDMS.But this is not always a practic way.In most time we
mapping every leaf class in the hierachy to a separate table ,and do not
create any table for the supperclass but mapping their persistent field to
those leaf class table. In this way,redundant data be created indeed ,but
the whole data model become more mainteneable and reasonable. My question
is ,does kodo support this kind of o-r mapping ? if so, how to config the
metadate file ?
2, When using datastore identity,it's not nesseccary for programmers to
implement object id.But how can i access a object's id creaded by JDO
implemention? for example,my application want to compare tow object for
equality by their id,how do I access the id in my program ?
Thanks
Gentri

Thank you Patrick. I have another question: does kodo support non-durable
identity ?
Gentri
"Patrick Linskey" <[email protected]>
??????:[email protected]..
On Sat, 19 Jul 2003 18:13:41 +0800, Gentri wrote:
Hi all,
I have two questions when creating database scheme:
1, kodo use a default FlatInheritanceMapping to mapping class
inheritance
hierachy to a RDMS.But this is not always a practic way.In most time we
mapping every leaf class in the hierachy to a separate table ,and do not
create any table for the supperclass but mapping their persistent fieldto
those leaf class table. In this way,redundant data be created indeed,but
the whole data model become more mainteneable and reasonable. Myquestion
is ,does kodo support this kind of o-r mapping ? if so, how to configthe
metadate file ?Kodo does not currently support this type of mapping. It's on our radar
screens, and we anticipate supporting it in the next couple months.
2, When using datastore identity,it's not nesseccary for programmers to
implement object id.But how can i access a object's id creaded by JDO
implemention? for example,my application want to compare tow object for
equality by their id,how do I access the id in my program ?You can do:
Object oid1 = JDOHelper.getObjectId (o1);
Object oid2 = JDOHelper.getObjectId (o2);
if (oid1 != null && oid1.equals (oid2))
// do stuff
This works with both application and datastore identity.
Note, however, that the JDO spec guarantees that no matter how you
navigate to an object within a given persistence manager, you will always
obtain the same object reference within that PM, and you will always
obtain different object references within different PMs.
That means that if o1 and o2 were both obtained in the same PM, you can
just do an == comparison to see if they represent the same data.
-Patrick
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • Is there a way to roll back ios6? I upgraded before I knew about the new mapping. I used google maps all the time and absolutely hate the new one. Just about everything I've looked for is wrong or missing.

    I hate the mapping in IOS6. Is there a way to roll back to the older OS? When I upgraded I didn't know about the mapping change. I used google maps a lot, for a variety of things. In just a few searches I've found more errors or missing landmarks than anything else. I really hate this app!

    I agree. How can I roll back to the previous OS? Developers, please post a procedure for reverting.

  • About label Oracle Map Builder

    Hello! I have a question about Oracle Map Builder.
    There are three layers in basemap: the first - a polyline, the second - a point, and the third - a polygon with a solid color (top). Labels are included to the first two signatures. While viewing the map shows a third (polygon) layer, and the signature of the first two.
    Question: Is there a possibility to remove the appearance of signatures of the lower layers (disabling signatures by minimum scale for display is not suitable, as they are used outside of polygon layer), and how to do it?
    Thank you!

    I'm not sure I understand the question. Here's is my assumption of what the question is.
    You have three layers in a basemap : a polyline, a point, and a polygon in that order. That is polyline rendered first, points on top of it, and then the color-filled polygon layer on top of those two.
    The part I don't understand is what you mean by signatures of the polyline and point layers.
    Anyway, if the solid color-filled polygon layer is rendered last (i.e. on top) then the other two layers should not be visible at all unless their extent (the area they cover) differs from the extent for the polygon layer or the polygon layer does not completely cover the map extent or it's not a solid color fill but one with some transparency setting.
    Scale ranges can be applied to each layer when adding them to a basemap in MapBuilder. Choose the scale mode (e.g. ratio) and set the max and min scale values for each layer. e.g.
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
    <theme name="STATES_DENSITY" min_scale="Infinity" max_scale="2.5E7" scale_mode="RATIO"/>
    <theme name="COUNTY_POPDENSITY" min_scale="2.5E7" max_scale="0.0" scale_mode="RATIO"/>
    <theme name="HIGHWAYS_LINE"/>
    <theme name="CITIES" min_scale="1000000.0" max_scale="1000.0" scale_mode="RATIO"/>
    </map_definition>
    The above says render the states_density layer while zoomed out to the full extent and up until the user zooms in to a 1:250,000,000 scale. When zoomed in further do not render/display the states population density layer. Display the county population density instead. Always display the highways. And start to display cities when the map in zoomed to 1:1,000,000 and up until 1:1,000 scale.
    If you want to set the labeling scale ranges on a per layer (theme) basis then set it using the Other Properties panel in Map Builder. For the Cities layer above the styling rule with label scale ranges set is:
    <styling_rules>
    <scale_ranges>
    <mode> RATIO </mode>
    <min_labeling_scale> 1.0E8 </min_labeling_scale>
    <max_labeling_scale> 10000.0 </max_labeling_scale>
    </scale_ranges>
    <rule>
    <features style="M.ALL_CITY_L1_8X8"> (POP90 &gt; 1000000) </features>
    <label column="CITY" style="T.S03_CITIES_L1"> 1 </label>
    </rule>
    </styling_rules>
    i.e. show city names from 1:100,000,000 till 1:10,000
    1/100,000,000 is a smaller number than 1/10,000
    Hope this helps.

  • About iscsi hd mapping sequence

    I want to build up RAc enviroment that use openfiler as iscsi target storage
    I have following shared iscsi disks
    [root@rac1 ~]# iscsi-ls -l |grep 'NAME\|sd'
    TARGET NAME : test2
    Device: /dev/sdc
    TARGET NAME : test1
    Device: /dev/sdd
    TARGET NAME : asm3
    Device: /dev/sdf
    TARGET NAME : asm1
    Device: /dev/sde
    TARGET NAME : asm2
    Device: /dev/sdi
    TARGET NAME : votedisk
    Device: /dev/sdh
    TARGET NAME : ocr
    Device: /dev/sdg
    but ,the disk mapping order will change after reboot,How can I fix them in order even after system reboot?
    any suggestion

    pls forgive my poor english
    It's not something about permittion,or even it's not the business of database but storage or OS problem
    In my scenario I just found /dev/sdb mapps my iscsi target (named ocr) after reboot /dev/sdb mapps iscsi target (named votedisk)
    I can not get persistent local disk label

  • Quastion about type conversion mapping

    What does the type convertion mapping serve for in jdeveloper 10g?
    Cant find any meaningful examples.
    I think it sould be used for escaping java coding if it is necessarily to change automatically generated data types...or to supply some specific format like to_char function in sql... But it seems that neither functionallity is supporteds
    Thanks. Alex

    There is some more current info here:
    http://wiki.eclipse.org/Introduction_to_Mappings_(ELUG)#Type_Conversion_Converter
    But this is for the TypeConversionConverter in EclipseLink, which is mostly the same (the TypeConversionMapping in 9.0.4 became the TypeConversionConverter in 10.1.3).
    It is basically to handle converting from one type in Java such as Calendar to another type in the database, say DATE or even VARCHAR, etc. It can handle most obvious conversions. Many conversions will also work without a converter, or at least work most of the time depending on if the database auto converters types, but some databases are more picking on the type that is bound matching the field type.
    James : http://www.eclipselink.org

  • Question about documenting process maps and form object properties

    Does the new version of Workbench have a tool that allows us to print a report showing the properties of the object used in a form template or process map? For example... showing all of the properties like fonts, size, patterns, defaults, whether or not a field is required, etc...? I am also checking to see if this capability has been added to Workbench for Process Maps?

    No it does not but there is a blog entry by John Briinkman that will analyze your form template and give you some of that information. Here is a link to the blog entry:
    http://blogs.adobe.com/formfeed/2011/05/updated-form-report-tool.html
    Paul

  • Quick question about url/jsp mapping

    Could anyone clarify whether the following mapping in the web.xml file is possible?
    I want to access the file webapps\examples\gate\login.jsp by going to the page http://192.168.2.143:8080/work/login.jsp instead of http://192.168.2.143:8080/examples/gate/login.jsp
    Currently I can map it fine to http://192.168.2.143:8080/examples/work/login.jsp,
    which is an existing folder, but when I try and get it above the examples folder, it gives me the 404 error.
        <servlet>
            <servlet-name>Login</servlet-name>
            <jsp-file>/gate/login.jsp</jsp-file>
        </servlet>
        <servlet-mapping>
            <servlet-name>Login</servlet-name>
            <url-pattern>/../work/login.jsp</url-pattern>
        </servlet-mapping>

    Using only work/login.jsp will cause an error, and the tomcat server to crash, if I use the pattern
    <url-pattern>/work/login.jsp</url-pattern>, I just map the URL http://192.168.2.143:8080/examples/work/login.jsp instead of
    http://192.168.2.143:8080/examples/gate/login.jsp
    My entire webaps structure is rather long, and contains code other than my own, so I'd rather not post it, I just need to figure out if it is possible to map the jsp page to a path above the file. (do you think I need to do it in another web.xml?)

  • About the Vietnam map data

    I live in Vietnam Hanoi and I am using Nokia N82.Isn't there any map data which a way name understands?

    Hi,
    there is now a garmin-compatible vector graphic map for Vietnam on the market. This map also works with Garmin Mobile XT whicha also runs on some Nokia models. You can check the map out on www.gps-navigation.at.tf .
    This is the best digital maps for GPS devices for Vietnam on the market.
    Paul

  • Question about iOS 6 Map Turn by Turn navigation !!!

    Hi, anyone know why my arrow in turn by turn navigation arrow is grayed out like this ? I have tried to find a route at home using wifi and after that I went out with 3G on but the arrow was still gray. By the way, when I change the 3D button on/off I did not see anything change. 

    Thanks but that's not what I want to ask. According to those youtube demos about turn by turn navigation (TBTN) that people have been posted. Normally, when you create a route from point A to point B, you will have a blue arrow and show you the road in perspective of a 3D compass (3D button turned on). But for my case, I got a gray arrow and did not show any change in perspective even when i made a u turn. I've tried to be on blue track but the arrow is still in gray color. Like this video: http://www.youtube.com/watch?v=HAZ7kovuQPA

  • A problem about GP parameters mapping.

    Hi, all.
    I tried to group two parameters together.
    Those are both structured parameter with cardinality 0.n.
    But when I groupped them together , the cardinality became 0.1 .
    I had no idea how this happened. Can anyone give me a hand?
    Thanks

    This is a system bug for NW7.01.

  • Hey i have a question about installing the maps on...

    i seen that they had the e71 but not the 71x but shouldnt the software still work. or is there a updat coming out soon

    The E71x is AT&T branded and uses it's own AT&T navigator.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • The question about Interface Mapping in BPM

    Hello,
    I am a few confused about  an Interface Mapping in BPM at the Design step.
    I have a task to transmit and trasform two messages of two sender file adapter to  two IDOCs messages and then to send them to SAP system.
    I use BPM.
    But I don't understand what types of message interfaces should I use for source and target interfaces in Interface Mapping? As to the target interface I understand it must be abstract but which of interfaces exactly?
    Actually there are some questions here:
    1) If the source interface should be abstract or real in Interface Mapping?
    2) If the target interface should be  the abstract interface of Receive Step object or the abstract interface of Send Step object?
    3) And what the message types should I use for the source and target message interfaces in Interface Mapping? If I understand correctly that these message types

    hi igor,
    you have to import the IDOC Types under the imported objects in the integration repository objects,
    what are all the data that coming out from the file adapter, you design the datatype.
    the target IDOC should be real and you do the mapping for the all necessary fields.
    refer: --
    File to IDOC:
    Re: how to Sending XML data to idoc
    IDOC Mapping:
    http://help.sap.com/saphelp_crm40/helpdata/en/77/a1d48b1ce06d40932e0a26f3c117ce/frameset.htm

  • Wacom Tablet Mapping Bug Only in Photoshop

    I am using a Graphire Wireless Wacom Tablet on a Windows 7 PC at work. I installed the most recent drivers, and it works flawlessly in a duel monitor setup, and I have no trouble mapping it however I would like.
    This is all great until I launch Adobe Photoshop (CS4). Upon launch of the program there is some kind of bug, and suddenly the mapping acts as if both displays were squished into only the primary display. I can toggle between displays, and instead of toggling between display 1, 2, and both, it toggles between the left and right half of the screen and the whole screen. The other monitor is still functioning normally, only the mapping of the tablet is effected, and as soon as I close Photoshop, it reverts back to normal.
    I did find one posting with the same problem, but it was resolved my installing the updated drivers, which I already have, and the discussion was closed. Any help I can get would be great.

    Wacom has per-appliation settings, and somewhere you've changed the tablet mapping for Photoshop.
    Photoshop does not know about the tablet mapping, only the Wacom driver knows about and controls the tablet mapping.
    Check the Wacom control panel/preferences.  If you can't figure it out, contact Wacom technical support.

  • Multiple topics using the same map ID

    Hi!
    Can anyone tell me how I go about assigning a map ID number when numerous topics use the same screen?  When I try to do it in the Map ID dialog box, it tells me the number is already assigned.
    BTW, does anyone know of any documentation that helps in creating map IDs?.  Most of the information I've found here on the forum addresses how to work with the developer to make sure they work, not for the tech writer to learn how to actually do the map ID'ing so you know you are doing it correctly.  Both books I have on RoboHelp do not discuss this in any length.
    Thanks.

    Thanks for the response, Peter.  Yes, it is a situation where one screen in the application is used in several topics.  For example, to complete three different endorsements on an insurance policy, they all use the same screen.  Of course, there are different instructions on how to use that screen for each type of endorsement.
    Does that make sense?
    But I think you're probably right in that I will have to put links in those topics to the one with the map ID even though that task is not the task they are completing.
    Maggie Prince
    Senior Technical Writer
    The Cincinnati Insurance Companies
    513-870-2000 ext 6112
    "It's never too late to be who you might have been."
    George Eliot
    Confidentiality notice: The information included in this e-mail, including any attachments, is for the sole use of the intended recipient and may contain information that is confidential and protected. Any unauthorized review, use, disclosure, distribution or similar action is prohibited. If you are not the intended recipient, please contact the sender and delete all copies of the original message immediately.
    Message was edited by Peter Grainge to remove the email address. Never put your email address on any forum unless you fear missing emails advising you that there is a large amount of money in a Nigerian bank account which is yours to share in return for your bank account details.

  • I want to go back to OS 5 i do not care if i lose my saved data, i hate that google maps is gone and my email has changed too, ready to change from my 4s I-phone to go to a black berry

    Coming from a Blackberry I was real happy to get the 4S iphone and loved it then an upgrade to OS6 crashed all hope that this will work for me , maps are useless and fustrating, im in sales and sometimes my car does not have the most current updates so i count on the phone. also my gmail is slower. i want to go back to os5 even if i loose everthing and have to put it all back. Is Apple does not fix this soon and add back the old app for Google with out me jumping hoops, ps i never want to see  Yahoo?????? again. then i will leave Apple at my first opportunity to go back to Blackberry. APPLE stop trying to fix what already works just allow your customer to choose which service they want, isnt that why you have apps to begin with choice.

    Hello!
    I recently just downloaded the 'Waze' app as a backup for my Garmin. I've read a few reviews that seem to rant and rave about how good the GPS app is. It is community driven and maps are constantly being updated by users. Plus it has a few other fun stuff in it (something similar to Gasbuddy where you can owe prices on the map). But like the person above me said, there is lots of useful free GPS apps in the App Store.
    Oh and I may be wrong but I remember reading an article about Google being slower about updating its maps system--ie no turn by turn voice, which many people have had complaints about.
    Happy Searching!
    Ps - if you switch I wouldn't go to Blackberry.

Maybe you are looking for

  • How to improve performance of a query that is based on an xmltype table

    Dear Friends, I have a query that is pulling records from an xmltype table with 9000 rows and it is running very slow. I am using XMLTABLE command to retreive the rows. It is taking upto 30 minutes to finish. Would you be able to suggest how I can ma

  • How to set max length for TextField ?

    how do i go about setting a max length for a TextField in jdk1.1.8 ? a while back there was a topic on this but it was for jdk1.0 please help

  • Has anyone had issues with their Gyroscope or Accelerometers randomly breaking?

    I had my phone in my purse for a few hours at work and when i took it out again they were no longer working.  I didn't do anything (use, touch, drop, etc.) to the phone in that time period and now my phone gets extremely hot when I'm using it or when

  • Manipulating random access dat files

    I have a bit of a problem, i inherited a system written in qbasic and i need to be able to manipulate some .dat files which are stored as random access binary files. my input stream is as follows RandomAccessFile vansfile = new RandomAccessFile("c:\\

  • Usage question about Default Display Value based on calculation

    Hi, I read on page 3-70 of the devguide about using EL for Default Display Values. I want to something similar as the defaultSalaray based on some kind of calculation. There is stated to store the value on the request or session (request is fine for