Populating One way path in our Network data model

Hi
I have some data for my application car navigation system. I am using Oracle spatial feature in my database.we created network data model for our application. we want to populate One way path direction in my Network data model. I am not able to do Please help me

HI Paolini,
No this direction is for our Network model. but we want to populate for Device. My table structure is
delhi_road
SW_UFI
NAME
FROM_LEFT
TO_LEFT
FROM_RIGHT
TO_RIGHT
ALIAS_NAME
LABEL
LENGTH_M
SPEED
ONEWAY
STATE
TOLL_0_1
CITY
CLASSIFICA
CATEGORY
GEOMETRY
ID
USER_ID
here is oneway column if value is 1 then it is one way otherwise bidirectional. I created data model but i am not able to populate path direction

Similar Messages

  • Path direction in Oracle spatial network data model

    Hi all,
    can any one help me how to implement path direction using oracle network data Model?
    We are using Oracle Spatial database. there is one feature called network constraint in Network data Model. but how to implement path direction of my Network ? Please help me any one

    The path direction in a Spatial network is enabled at creation time when calling the create network procedure such as SDO_NET.CREATE_LOGICAL_NETWORK. If you describe the Create procedure you're using you should see a IS_DIRECTED argument, which when set to TRUE will enable path direction. Then just ensure that your links are created in the right direction -specifying correct orientation for start node and end node.
    Cheers,
    Stuart.

  • Network data model for public transport

    Hi,
    I've been playing with Gis for the last 10 years and now I am enrolled in a project to find best way to go from one point to another in Barcelona (Spain) locations, using the public transport network.
    The goal is to get a route, from one address to another (both given as inputs), formed by:
    -     a 1st piece of path walking to the bus stop
    -     a 2nd piece of path involving the bus used to go from one bus stop to another
    -     optional 3rd piece of path with a second bus
    -     the last piece of path to walk from the destination bus stop to the destination address.
    This is a nice problem to resolve with a quite good looking software like the Oracle NDM. I know the big problem will be to put all the data in the right format.
    But the question I’d like to share with you would be to approve or improve the algorithm I am thinking to resolve this:
    STRUCTURE
    Network Data Model NDM_1: creation of a SDO spatial network with all the streets and cross-roads to walk through
    Other NDM_2 to store the bus stops with the bus-route-linking information.
         The reason to put them separately is for easily maintenance (a priori).
         [A second approach perhaps would be to put the bus stops as nodes of NDM_1 also]
    ALGORITHM
    1. Look for bus-stops near the geolocated origin address. (say listing BS_ORIG_list)
    2. Look for bus-stops near the geolocated destination address. (say listing BS_DEST_list)
    3. Search through NDM_2 for possible correspondences between BS_ORIG_list and BS_DEST_list through single bus line or by two different bus lines applying a network constraint.
    (if not correspondence found or if more than 2 bus lines needed, abort by app requirement)
    4. Find the walking paths needed to complete the various routes found in step 3 to get from address origin to destination
    5. Order the results by time spent or by meters to walk.
    Sure there might be improvements to this solution and also other ways to face such a common problem.
    Thanks in advance,
    David Foix

    Hi Andrejus,
    Thanks for answering.
    I read through your thread already...
    I understand and agree it would be a multimodal network. But what would that mean in the time of storing the data and asking for the route?
    But I am still doubting the way to query for the resulting route. Having two adresses to join, would there be a nice function or procedure to ask for the route giving preference to walk the minimum meters and use preferently the bus network?
    Or should I rely on the first algorithm I proposed? I thought there would be a nicer solution.
    In your case, "road transport, railway transport, naval transport and air transport" I understand it would be a case to use different networks as they don't share spatial geometry, only some nodes..isn't it? Did you have the need to join all of them to find route solution giving preference to one of them?
    Regards,
    David

  • How to use NetworkConstraint in Network Data Model?

    e.g. In a transportation application, you may drive from Node1 to Node2 along Link12, and from Node2 to Node4 along Link24, but you can not 'turn-left' from Link12 to Link24, how to restrict this in Oracle Spatial Network Data Model?
    Is there any examples?
    Thanks a lot.

    The only way I know to do it, is to have a more complex node model. Instead of a simple node joining links 12 and 24, you need several at that point that link the streets. For example, with a standard four-way intersection, each end of the streets would have a node (warning CRUDE drawing):
    ..A
    B.+.C
    ..D
    Links between those nodes could have directional restrictions, or not even exist at all between any two. So, you could set it up such that From D to A and B to C you can go either way. For right turns, D to C, C to A, A to B, and B to D are directional. For left turns, C to D, A to C, and B to A are directional, with no D to B link existing.
    Hope that makes sense.

  • Network data Model Visualizer

    Hi:
    how/where can I obtain the "Network data Model Visualizer" to display network models?
    Vijay
    (703) 447-6708

    Is there an other way to visiualize the Network data. Does any GIS System (ESRI ArcGis, Intergraph Geomedia, etc.) support the Network Model?

  • Oracle network data modele on mapviewer

    bonjour , goodmorning
    English:
    I have an application of oracle network data modele witch contains node , link , plink and path tables. and i like to view this whith mapviewer application on web page, i was setup mapviewer 10.1 with OC4J and i saw the mvdemo without errors ... please get me the steps to do for visualizing my network.
    Français:
    j'ai mon propre réseau oracle network data modele et je voudrais le visualiser avec mapviewer sur une page web. le réseau contient les quatres tables necéssaire et pas de probleme dans ce coté. j'ai bien installer mapviewer avec le serveur OC4j et j'ai visualiser l'exemple mvdemo sans aucun probleme... SVP indiquez moi les etapes a suivre afin de visualiser mon reseau.

    First may I recommend that you use the latest MapViewer quick start kit, which is 11g R1.
    On your mapviewer web site, if you click the "Demos" tab, there is a link to a simple Network demo page. Have you tried using that? You should populate it with your own network data (network name et al). Let us know if you need more information on how to make this demo work with your data.
    thanks
    LJ

  • Network Data Modeler Source

    I have been working on building PL/SQL to extract Network models from well formed road shape files. I have successfully built a rather large road network and would like to add some features to Oracle's Network Data Model Editor to assist with final editing and add the pl/sql extraction module. Does anyone know if Oracle has released the source for this or if they are planning to?
    Thanks

    Hi,
    Please see the Data Modeler Forum message option Show Source/Target Name “on” in the logic model for an answer to this question.
    David

  • How to handle One to Many relation In BI Data Model

    Hi,
    I posted this same question earlier but bit in a different way ..
    I have may be infact many come across this requirement ..
    As you know R3 Multiple Partner functions would be assigned to a single Sales document but when we want to show the same sales report along with Sales document and respective partner functions in BI it is bit difficult because we can not really allow to split the keyfigure values based on Partner functions when they drilled down by Pfunctions ...
    Only alternative is to have multiple partner function attributes (columns) like one for each pfunction in one of the Sales Doc Masterdata and define them as navigational attributes..so that all partner functions would be saved
    SALES DOC -
    PartnerFunction-----AMOUNT
    100000----
       ZZ -
    5000
    100000--   AB--
    100000--    BC--
    to meet above requirement as per my above proposed alternative looks like as below
    SALES DOC -
    Partner Function 1--PArtner Function2-- PF3------ AMOUNT
    100000--ZZABBC--
    5000
    So other than this do you see any other better Data Model ??
    Could you please share your thoughts on it??
    Thanks & Regards,
    BRK

    Create a view based on VBPA ( Sales partner functions) and VBAK,VBAPor VBEP ( anyone relevant to your case) and create a generic datasource based on that

  • Oracle 10g OCA/OCP - There is a one-way path?

    Hello.
    I' m planning to undergo the 1z0-042/1z0-043 exams.
    1)Following the suggested path I have to undergo FIRST one of the [1z0-007, 1z0-47,1z0-51] exams and THEN the 1z0-042 to obtain OCA.
    Is it possible in the other way? (FIRST 1z0-042 and THEN one of the [1z0-007, 1z0-47,1z0-51]
    2)In the same way,is it possible after OCA, FIRST get through the 1z0-043 exam and THEN follow and complete [One of the instructor-led online o in-class courses] and Complete the course submission form to obtain OCP?
    3)Is possible to undergo FIRST 1z0-042 THEN 1z0-043 and AFTER the 1z0-047 + follow and complete [One of the instructor-led online o in-class courses] and Complete the course submission form to obtain OCP?
    The components are the same.What differs is the order.
    Thanks
    Paolo Filippi

    user8371005 wrote:
    Hello.
    I' m planning to undergo the 1z0-042/1z0-043 exams.
    1)Following the suggested path I have to undergo FIRST one of the [1z0-007, 1z0-47,1z0-51] exams and THEN the 1z0-042 to obtain OCA.
    Is it possible in the other way? (FIRST 1z0-042 and THEN one of the [1z0-007, 1z0-47,1z0-51]
    2)In the same way,is it possible after OCA, FIRST get through the 1z0-043 exam and THEN follow and complete [One of the instructor-led online o in-class courses] and Complete the course submission form to obtain OCP?
    3)Is possible to undergo FIRST 1z0-042 THEN 1z0-043 and AFTER the 1z0-047 + follow and complete [One of the instructor-led online o in-class courses] and Complete the course submission form to obtain OCP?
    The components are the same.What differs is the order.
    Thanks
    Paolo FilippiGenerally you can do any exams/courses you like in whatever order you like (There are exceptions ... i think certain Jaa certifications have certain order pre-requisites ... usually arround written assignments).
    HOWEVER, you will not recieve any certifications until you meet all the pre-requisites for that certiication:
    Thus if you first pass 1z0-043 .... you will receive no certifications as you have not fulfilled all prerequsites for any certification.
    If you thn passed 1z0-042 .... you will still receive no certifications as you have still not fulfilled all pre-requsites for any certification.
    If you then attended an accreditted course satisifiying the 10 DBA OCP and then submitted and had it validated you will still receive no certifications as you have still not fulfilled all pre-requsites for any certification.
    If you then passed 1z0-047 would at that receive the following certifications close to simulataneously as you have fulfiled pre-requisites
    :: SQL OCE, 10g DBA OCA, 10g DBA OCP. (The 10g DBA OCA is sort of irrelevant at this point).
    Conversely Steve Zodiac:
    - Passed 1z0-047 and was awarded SQL OCE as he had fulfilled all pre-requisites
    - Passed 1z0-042 and was awarded 10g DBA OCA as he had fulfilled all pre-requisites
    -- Attended a course relevant to 10g DBA OCP and got it validated.
    - Passed 1z0-043 and was awarded 10g DBA OCA as he had fulfilled all pre-requisites
    :: The difference will Seve Zodiac is he got interim certification awards quicker.
    Incidently i recommend people study for 1z0-051 rather than taking 1z0-047 directly as the latter is mor difficult ( And specially if anyne has attempted to put the SQL exam last ;) )
    The exam order 1z0-051 - 1z0-042 and 1z0-043 should certainly be preferable for most people, but there are exceptions.

  • Problem reading a network (Network Data Model)

    Hello,
    I'm trying to create a network for routing. I can create and write this network fine but can't read it.
    Currently I'm using the PL/SQL API but have also tryed the Java API (both present the same problem).
    The following PL/SQL gives the below error:
    EXECUTE SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING','FALSE');
    ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-00600: internal error code, arguments: [kxsGetRuntimeLock2], [0x0D7CF7C38], [1], [1], [1], [], [], []
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 284
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 114
    ORA-06512: at line 1
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.I assume either I'm missing something fairly simple somewhere or the database is not set up correctly for this.
    The following PL/SQL is used to create the network:
    BEGIN
      SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING',1,'FALSE',8307,2,
        'P_ROUTING_NODE','GEOM','COST',
        'P_ROUTING_LINK','GEOM','COST',
        'P_ROUTING_PATH','GEOM',
        'P_ROUTING_PLINK',
        'P_ROUTING_SUBPATH','GEOM','FALSE');
      SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING');
    END;
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    CREATE INDEX P_ROUTING_NODES_INDEX ON P_ROUTING_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING_LINKS_INDEX ON P_ROUTING_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;Edited by: user4868887 on 23-Jun-2009 05:18

    Thanks for your replies.
    I have not been able to execute SDO_NET.FIND_CONNECTED_COMPONENTS.
    I've tried to populate the network using both inserts and SDO_NET_MEM.NETWORK.ADD_NODE/LINK when creating it.
    On validation, I needed to add metadata for the PATH tables, this now says the network is valid but the same error occurs on read.
    The database version is 11.1.0.6 Enterprise Edition (running on SLES 10).
    Unfortunately the Java code is on another machine so I can't post it at the moment.
    The full code now run on creation is:
    BEGIN
    SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING7',1,'FALSE',8307,2,
      'P_ROUTING7_NODE','GEOM','COST',
      'P_ROUTING7_LINK','GEOM','COST',
      'P_ROUTING7_PATH','GEOM',
      'P_ROUTING7_PLINK',
      'P_ROUTING7_SUBPATH','GEOM','FALSE');
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',1,'NAME1',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188498,52.954090, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',2,'NAME2',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188127,52.954323, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_LINK('P_ROUTING7',1,0,1,2,0);
    -- Note: could not get the ADD_LINK with geometry parameter to work
    SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING7');
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_PATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_SUBPATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    END;
    CREATE INDEX P_ROUTING7_NODES_INDEX ON P_ROUTING7_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_LINKS_INDEX ON P_ROUTING7_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_PATHS_INDEX ON P_ROUTING7_PATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_SUBPATHS_INDEX ON P_ROUTING7_SUBPATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    select sdo_net.validate_network('P_ROUTING7') from dual;
    DECLARE
    path NUMBER;
    BEGIN
    -- SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING7','FALSE');
    path:=SDO_NET_MEM.NETWORK_MANAGER.SHORTEST_PATH('P_ROUTING7',1,2,NULL);
    DBMS_OUTPUT.PUT_LINE('The shortest path from node 1 to node 2 is path ID: ' || path);
    SDO_NET_MEM.NETWORK_MANAGER.DROP_NETWORK('P_ROUTING7');
    END;The last block works fine on creation, but when run on its own (un-commenting the READ_NETWORK call) I get the error from the first post.

  • XML Parse issues when using Network Data Model LOD with Springframework 3

    Hello,
    I am having issues with using using NDM in conjuction with Spring 3. The problem is that there is a dependency on the ConfigManager class in that it has to use Oracle's xml parser from xmlparserv2.jar, and this parser seems to have a history of problems with parsing Spring schemas.
    My setup is as follows:
    Spring Version: 3.0.1
    Oracle: 11GR2 and corresponding spatial libraries
    Note that when using the xerces parser, there is no issue here. It only while using Oracle's specific parser which appears to be hard-coded into the ConfigManager. Spring fortunately offers a workaround, where I can force it to use a specific parser when loading the spring configuration as follows:
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl But this is an extra deployment task we'd rather not have. Note that this issue has been brought up before in relation to OC4J. See the following link:
    How to change the defaut xmlparser on OC4J Standalone 10.1.3.4 for Spring 3
    My question is, is there any other way to configure LOD where it won't have the dependency on the oracle parser?
    Also, fyi, here is the exception that is occurring as well as the header for my spring file.
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 11 in XML document from URL [file:/C:/projects/lrs_network_domain/service/target/classes/META-INF/spring.xml] is invalid;
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
         [snip]
         ... 31 more
    Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
         at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:425)
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:331)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:222)
         at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
         at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)Here is my the header for my spring configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:aop="http://www.springframework.org/schema/aop"
           xmlns:tx="http://www.springframework.org/schema/tx"
           xmlns:context="http://www.springframework.org/schema/context"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">Thanks, Tom

    I ran into this exact issue while trying to get hibernate and spring working with an oracle XMLType column, and found a better solution than to use JVM arguments as you mentioned.
    Why is it happening?
    The xmlparserv2.jar uses the JAR Services API (Service Provider Mechanism) to change the default javax.xml classes used for the SAXParserFactory, DocumentBuilderFactory and TransformerFactory.
    How did it happen?
    The javax.xml.parsers.FactoryFinder looks for custom implementations by checking for, in this order, environment variables, %JAVA_HOME%/lib/jaxp.properties, then for config files under META-INF/services on the classpath, before using the default implementations included with the JDK (com.sun.org.*).
    Inside xmlparserv2.jar exists a META-INF/services directory, which the javax.xml.parsers.FactoryFinder class picks up and uses:
    META-INF/services/javax.xml.parsers.DocumentBuilderFactory (which defines oracle.xml.jaxp.JXDocumentBuilderFactory as the default)
    META-INF/services/javax.xml.parsers.SAXParserFactory (which defines oracle.xml.jaxp.JXSAXParserFactory as the default)
    META-INF/services/javax.xml.transform.TransformerFactory (which defines oracle.xml.jaxp.JXSAXTransformerFactory as the default)
    Solution?
    Switch all 3 back, otherwise you'll see weird errors.  javax.xml.parsers.* fix the visible errors, while the javax.xml.transform.* fixes more subtle XML parsing (in my case, with apache commons configuration reading/writing).
    QUICK SOLUTION to solve the application server startup errors:
    JVM Arguments (not great)
    To override the changes made by xmlparserv2.jar, add the following JVM properties to your application server startup arguments.  The java.xml.parsers.FactoryFinder logic will check environment variables first.
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    However, if you run test cases using @RunWith(SpringJUnit4ClassRunner.class) or similar, you will still experience the error.
    BETTER SOLUTION to the application server startup errors AND test case errors:
    Option 1: Use JVM arguments for the app server and @BeforeClass statements for your test cases.
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
    System.setProperty("javax.xml.parsers.SAXParserFactory","com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
    System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
    If you have a lot of test cases, this becomes painful.
    Option 2: Create your own Service Provider definition files in the compile/runtime classpath for your project, which will override those included in xmlparserv2.jar.
    In a maven spring project, override the xmlparserv2.jar settings by creating the following files in the %PROJECT_HOME%/src/main/resources directory:
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory (which defines com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl as the default)
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory (which defines com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl as the default)
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.transform.TransformerFactory (which defines com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl as the default)
    These files are referenced by both the application server (no JVM arguments required), and solves any unit test issues without requiring any code changes.
    This is a snippet of my longer solution for how to get hibernate and spring to work with an oracle XMLType column, found on stackoverflow.

  • Q:  Data Modeler - Logical Model - 0 or 1 to....relationships...

    Hi,
    I’m currently at a client where we’re using Oracle SQL Developer Data Modeler to design our Logical Data Models (as part of an overall deliverable).
    When in the Oracle SQL Developer Data Modeler (in the logical view), I’m trying to figure out if the tool has the ability to create a “zero or one to” relationship between entities.
    According to the relationship options available, it only seems to show:
    One to One,
    One to Many (*),
    Many (*) to One, or
    Many (*) to Many (*)
    In the preferences – Data Modeler – Diagram – Logical Model, the notation type is set to “Barker”.
    I don’t see anywhere else where configuration can affect the variation of these options…
    Is there a way to show either a “Zero or One to…” relationship between entities?
    I’ve also loaded version 3.1 (beta) and it appears to be behaving the same as 3.0…
    Any insights are greatly appreciated…
    Thanks,
    Patrick

    Hi Kent,
    When I looked at this option, I was expecting to see a "|" and/or "O" in front of the crow's feet. I was not expecting to see a dashed line. Now I know...
    Thanks for your reply.
    Regards,
    Patrick

  • JList data model, MVC, is there an example?

    I have a JList, constructed from an AbstractListModel based on an ArrayList, tucked into a JScrollPane. The data model changes frequently en masse, not element by element. I have studied the API documentation of ListModel, ListDataListener, and ListDataEvent. I want to update my Jlist without reconstructing the whole thing, JScrollPane and all, and adding that JScrollPane to a JFrame's content pane in a method called from a distant class. That approach is just not working in the details like screen redraws, no matter the combination of validate(),repaint(), and show() calls I make.
    The data in the ArrayList is there, I'm just trying to notify the AbstractListModel in the JList in the JScrollPane that the data has changed, so presumably it can take care of displaying those changes. The search function for similar posts on the forum is not working for me, and I am running out of resources to study on my own. A set of tutorials by by Dick Baldwin
    http://www.phrantic.com/scoop/onjava.html
    has been the most helpful by far in explaining MVC and its application to JList, but he says,
    "fortunately we can avoid having to deal with the complexity of creating and maintaining a list of registered listener objects, and invoking listener mithods on those objects, by extending AbstractListModel to create our alternative data model..." I don't want complexity either, but I do want to update a data model.
    I need an example of how to use these methods, like addListDataListener(ListDataListener l), fireContentsChanged(Object source,int index0, int index1),
    public ListDataEvent(Object source,int type, int index0, int index1)
    I can't believe that what I want to do is that uncommon or esoteric. Maybe it's just that I'm not seeing something obvious.
    Any pointers?

    Stated differently:
    Here's the API and my error message and my code: is there a way to have just working code and the API, without the compiler error? (recs in the code is my data model, allRecs is the ArrayLIst it's based on)
    API
    fireContentsChanged
    protected void fireContentsChanged(Object source,
    int index0,
    int index1)
    AbstractListModel subclasses must call this method after one or more elements of the list change. The changed elements are specified by a closed interval index0, index1, i.e. the range that includes both index0 and index1. Note that index0 need not be less than or equal to index1.
    Parameters:
    source - The ListModel that changed, typically "this".
    index0 - One end of the new interval.
    index1 - The other end of the new interval.
    See Also:
    EventListenerList, DefaultListModel
    error
    C:\My Documents\Java\CIS 290\hw2\ConnectionHandler.java:173: fireContentsChanged(java.lang.Object,int,int) has protected access in javax.swing.AbstractListModel
    recs.fireContentsChanged(recs,0,allRecs.size());
    codepublic void handleServerMessages(DataInput in)
        done=false;
        int command =0;
        try
            command = in.readInt();
          catch(IOException e)
            e.printStackTrace();
          switch(command)
            case FULLPACKET:{handleFullPacket(in);} break;
            case PARTIALPACKET:
              initializeAllRecs();
              handlePartialPacket(in);
            } break;
            case ALREADYEXISTS: {;} break;
            case DOESNTEXIST: {;} break;
            case BYE: {done = true;} break;
            default: {;}
          recs.fireContentsChanged(recs,0,allRecs.size());
      }

  • Demantra - can it run with two Data Models in parallel?

    Hello,
    we face the following situation: we have items that have to planned on a daily basis; many other items, however, only need weekly planning.
    Demantra only allows one base time unit in its data model. If we choose "daily" for all products, the system size will increase enormously.
    If we choose "weekly" for all products, we can not plan our daily products for specific days in the week.
    The idea is now to set up a Demantra System with two data models in parallel. Is this possible? Would they reside in different databases or database users?
    The Business Modeller allows to create new models, but can they run in parallel? If they can, how would the user access the different data models?
    Thanks for any hints on this! 

    Can you please elaborate on this issue?
    Thanks

  • Installing Data Modeler tool

    Hi,
    I am unable to install data modeler on our PCs. We have java 1.5 on all our PCs and it is not possible to upgrade to java 1.6. This is because a mandatory application in the organization is not configured to use java 1.6.
    Is there any other way that we can download Data Modeler on our PCs.
    Thank you.

    Hi,
    no problems if your OS is Windows - you need the version with JRE included - in this case your environment won't be affected (no installs).
    Philip

Maybe you are looking for

  • Connecting MacBook to Sony Bravia LCD tv

    I really want to connect my MacBook to our tv to play region 1 dvd's and videos I've bought in iTunes. At the Apple Store they sold me 3 cables, 1 Mini-DVI to DVI connector, 1 DVI to HDMI cable and a cable for sound. I've got these both hooked up to

  • Using DW8 to take over web sites

    I am new at this. My company wants to take over their websites and they have decided to purchase DW8 and are sending me to school. My question is in order to work with the sites that already exist is DW enough or do we need to purchase the suite with

  • Mac Mini OS 10.5.8 will not install .pkg or .mpkg files

    Reciently my Mac Mini has been prompting me to "choose an application" when I try to install .pkg or .mpkg files. This is preventing me from installing any new software on my computer. I've tried to repair permissions and that didn't help. I also tri

  • Lots of errors after upgrading to 2.0

    Getting a couple of different errors when I sync An error occurred while restoring this iPhone -1426 and when trying to sync new applications The application "MySpace" was not installed on the iPhone because an unknown error occured (-35) Any suggest

  • I'm unable to sign into my ipad I have reset password but it wont let me sign in?

    I'm unable to sign into my ipad I have reset password but it wont let me log on?