Unique Relationship Entity

Is there a simpler way to get a unique relationship entity than this?
@Entity
class CarPassedTruck {
    class Unique {
         @KeyField(1)
         String carLicense;
         @KeyField(2)
         String truckLicense;
         private Unique() {}
    @PrimaryKey
    long id;
    @SecondaryKey(relate=MANY_TO_ONE, relatedEntity=Car.class)
    String carLicense;
    @SecondaryKey(relate=MANY_TO_ONE, relatedEntity=Truck.class)
    String truckLicense;
    @SecondaryKey(relate=ONE_TO_ONE)
    Unique unique;
    private CarPassedTruck() {}
}If this is the best approach, would it be possible to get an annotation to handle the creation of this composite key automatically? The cleanest place to put one would seem to be as an array of @UniqueKey in the @PrimaryKey.
@PrimaryKey(unique={@UniqueKey("carLicense", "truckLicense")})

Hi,
I've been thinking about this and I think perhaps a more general solution would be a better addition to the DPL in the long run.
If I understand correctly from your example and code, your main intention is to avoid creating the Unique key class that contains the car and truck license fields. In your example a long ID is used as the unique primary key. However, another (possibly more common) approach would be to make the car/trunk license the one and only unique key as follows.
@Entity
class CarPassedTruck {
    static class CarTruckKey {
         @KeyField(1)
         String carLicense;
         @KeyField(2)
         String truckLicense;
         private CarTruckKey() {}
    @PrimaryKey
    CarTruckKey key;
    @SecondaryKey(relate=MANY_TO_ONE, relatedEntity=Car.class)
    String carLicense;
    @SecondaryKey(relate=MANY_TO_ONE, relatedEntity=Truck.class)
    String truckLicense;
    private CarPassedTruck() {}
}In this case, and possibly also in your example, the CarTruckKey class is needed in order to do lookups by this key in the index. Lacking tuples (like Python and Scala) in Java, such a key class is needed to specify a composite key, especially in general case where not all the fields are Strings.
This brings us to more a general issue in the DPL, which has been pointed out several times on the forum and that we do plan to address in the future, which is that it is cumbersome to share a field's value among more than one key. Today, sharing of values requires that the application copy the shared value into multiple field locations. This copying has to be done initially when the object is created, and whenever a shared field value is changed. You'll find a number of posts on the forum about this.
This issue comes up whenever composite keys are used, and a field in a composite key is also used in another key or as a non-key field. We have several ideas in mind for addressing this issue, for example:
<li>Allow a field in a key class to refer to another field or key by name, such that the copying is done automatically.
<li>Provide a way to define keys via methods, rather than fields, allowing the methods to derive the key value (whether singular or composite) from other fields in the object. This also allows deriving keys using computations on their source data, as opposed to just copying.
Another issue is that one would like to specify a foreign key constraint on a field in a composite key class, whether or not that field also appears as a separate key. One would like to specify a sequence, as well, on an individual field in a key class.
Initially I didn't recognize your feature request as related to these more general problems, and I apologize for that. And I'm sorry that I didn't give you this feedback before you wrote the code; that wasn't fair.
We are really in no position right now to do the design or implementation work required to address these enhancements in a thorough way; we'll need to put a lot of thought into this, in order to keep the DPL model as simple as possible. But these issues have been outstanding for a long time, so I can imagine that you and others may be a little frustrated that we're taking so long. We have to balance the time we put into the JE database storage engine itself with time we put into the DPL, so we definitely have constraints. But I can assure you that we are chipping away at some of the DPL enhancements that have been requested.
I'm not sure whether you'd like to do a local enhancement in your copy of JE that addresses your immediate needs, or if you'd rather wait for more general solutions to appear in JE later on. Whatever you choose to do, we'll support you the best we can with the time we have available.
Thanks,
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Siebel Updation for Child Entity.

    Hi,
    The following is the response from OPA. Here global Entity is Action. There is "Time Tracker" Entity which has "actiontime" relationship with Global entity.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SiebelMessage MessageId="" IntObjectName="Policy Automation Response" MessageType="Integration Object" IntObjectFormat="Siebel Hierarchical">
    - <response>
    - <entity name="global">
    - <entity-instance name="global" row="global">
    - <relationship name="actionexpense" inferred="false" known="false">
    <target name="ExpenseTracker-8SIA-7Z0YG" />
    <target name="ExpenseTracker-8SIA-7Z0YH" />
    </relationship>
    - <relationship name="actionsr" inferred="false" known="false">
    <target name="SR-2SIA-12FN7" />
    </relationship>
    - <relationship name="actionpart" inferred="false" known="false">
    <target name="PartTracker-8SIA-7Z0YJ" />
    <target name="PartTracker-8SIA-7Z0YI" />
    </relationship>
    - <relationship name="actiontime" inferred="false" known="false">
    <target name="TimeTracker-8SIA-7Z2VR" />
    </relationship>
    - <attribute status="value" name="EntitledActivity" type="boolean">
    <value>true</value>
    </attribute>
    - <attribute status="value" name="Standard_Hours" type="number">
    <value>10.0</value>
    </attribute>
    - <attribute status="value" name="Overtime_Hours" type="number">
    <value>7.0</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="Entitlement">
    - <entity-instance name="Entitlement-2SIA-10W58" row="10W58">
    - <relationship name="entitlementservicedetails" inferred="false" known="false">
    <target name="ServiceDetails-8SIA-7Z0NS" />
    <target name="ServiceDetails-8SIA-7Z0NR" />
    </relationship>
    - <relationship name="contract_contractentitlement_rev" inferred="false" known="false">
    <target name="Contract-2SIA-10W4N" />
    </relationship>
    - <attribute status="value" name="EntId" type="text">
    <value>2SIA-10W58</value>
    </attribute>
    </entity-instance>
    - <entity-instance name="Entitlement-2SIA-10W56" row="10W56">
    - <relationship name="contract_contractentitlement_rev" inferred="false" known="false">
    <target name="Contract-2SIA-10W4N" />
    </relationship>
    - <attribute status="value" name="EntId" type="text">
    <value>2SIA-10W56</value>
    </attribute>
    </entity-instance>
    - <entity-instance name="Entitlement-2SIA-14NLC" row="14NLC">
    - <relationship name="contract_contractentitlement_rev" inferred="false" known="false">
    <target name="Contract-2SIA-14NKX" />
    </relationship>
    - <attribute status="value" name="EntId" type="text">
    <value>2SIA-14NLC</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="SR">
    - <entity-instance name="SR-2SIA-12FN7" row="12FN7">
    - <relationship name="global_actionsr_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <relationship name="srcontract" inferred="false" known="false">
    <target name="Contract-2SIA-10W4N" />
    <target name="Contract-2SIA-14NKX" />
    </relationship>
    - <attribute status="value" name="SRStatus" type="text">
    <value>Open</value>
    </attribute>
    - <attribute status="value" name="OpenDate" type="date">
    <value>11/17/2003</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="ExpenseTracker">
    - <entity-instance name="ExpenseTracker-8SIA-7Z0YG" row="7Z0YG">
    - <relationship name="global_actionexpense_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <attribute status="value" name="ExpenseType" type="text">
    <value>Airfare</value>
    </attribute>
    - <attribute status="value" name="Amount" type="number">
    <value>33.0</value>
    </attribute>
    </entity-instance>
    - <entity-instance name="ExpenseTracker-8SIA-7Z0YH" row="7Z0YH">
    - <relationship name="global_actionexpense_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <attribute status="value" name="ExpenseType" type="text">
    <value>Car Rental</value>
    </attribute>
    - <attribute status="value" name="Amount" type="number">
    <value>123.0</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="PartTracker">
    - <entity-instance name="PartTracker-8SIA-7Z0YJ" row="7Z0YJ">
    - <relationship name="global_actionpart_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <attribute status="value" name="PartNumber" type="text">
    <value>X2250</value>
    </attribute>
    - <attribute status="value" name="AssetNumber" type="text">
    <value>AA2250-001</value>
    </attribute>
    </entity-instance>
    - <entity-instance name="PartTracker-8SIA-7Z0YI" row="7Z0YI">
    - <relationship name="global_actionpart_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <attribute status="value" name="PartNumber" type="text">
    <value>X2250</value>
    </attribute>
    - <attribute status="value" name="AssetNumber" type="text">
    <value>AA2250-001</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="Contract">
    - <entity-instance name="Contract-2SIA-10W4N" row="10W4N">
    - <relationship name="contractentitlement" inferred="false" known="false">
    <target name="Entitlement-2SIA-10W58" />
    <target name="Entitlement-2SIA-10W56" />
    </relationship>
    - <relationship name="sr_srcontract_rev" inferred="false" known="false">
    <target name="SR-2SIA-12FN7" />
    </relationship>
    - <attribute status="value" name="ContractId" type="text">
    <value>2SIA-10W4N</value>
    </attribute>
    </entity-instance>
    - <entity-instance name="Contract-2SIA-14NKX" row="14NKX">
    - <relationship name="contractentitlement" inferred="false" known="false">
    <target name="Entitlement-2SIA-14NLC" />
    </relationship>
    - <relationship name="sr_srcontract_rev" inferred="false" known="false">
    <target name="SR-2SIA-12FN7" />
    </relationship>
    - <attribute status="value" name="ContractId" type="text">
    <value>2SIA-14NKX</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="TimeTracker">
    - <entity-instance name="TimeTracker-8SIA-7Z2VR" row="7Z2VR">
    - <relationship name="global_actiontime_rev" inferred="false" known="false">
    <target name="global" />
    </relationship>
    - <attribute status="value" name="Time_Tracker_Cost" type="currency">
    <value>275.0</value>
    </attribute>
    - <attribute status="value" name="Total_Overtime_Hours" type="number">
    <value>7.0</value>
    </attribute>
    - <attribute status="value" name="BillingRateType" type="text">
    <value>Normal</value>
    </attribute>
    - <attribute status="value" name="Total_Standard_Hours" type="number">
    <value>10.0</value>
    </attribute>
    - <attribute status="value" name="Time_Tracker_Price" type="currency">
    <value>175.0</value>
    </attribute>
    </entity-instance>
    </entity>
    - <entity name="ServiceDetails">
    - <entity-instance name="ServiceDetails-8SIA-7Z0NS" row="7Z0NS">
    - <relationship name="entitlement_entitlementservicedetails_rev" inferred="false" known="false">
    <target name="Entitlement-2SIA-10W58" />
    </relationship>
    </entity-instance>
    - <entity-instance name="ServiceDetails-8SIA-7Z0NR" row="7Z0NR">
    - <relationship name="entitlement_entitlementservicedetails_rev" inferred="false" known="false">
    <target name="Entitlement-2SIA-10W58" />
    </relationship>
    </entity-instance>
    </entity>
    </response>
    </SiebelMessage>
    I need to update Action and Time Tracker BC in the Siebel.
    Action - (Attributes : Standard_Hours, Overtime_Hours)
    Time Tracker - (Attributes: Time_Tracker_Cost Time_Tracker_Price)
    I am using EAI Data Transformation Engine to transfform the data. But the Child node is not constructing.
    Please help me.
    Thanks,
    Amol

    Unfortunately we don't have any people that are very experienced with Siebel on this forum. It seems to me that it should be possible using the Transformation Engine. The other option is to transform the XML into a PropertySet, extract the values that you want to update and then update them into the appropriate Business component.

  • Bidirectional relationships and JPA

    Hi, all!
    Consider the following class containing bidirectional relationship:
    @Entity
    public class Node {
    private Node parent;
    private Collection<Node> childNodes = new HashSet<Node>();
    @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.REFRESH, CascadeType.MERGE})
    public Node getParent() {
    return parent;
    public void setParent(final Node parent) {
    this.parent = parent;
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "parent", cascade = {CascadeType.ALL})
    public Collection<Node> getChildNodes() {
    return childNodes;
    public void setChildNodes(final Collection<Node> childNodes) {
    this.childNodes = childNodes;
    How should this bidirectional relationship be maintained?
    Should I maintain synchronization between childNodes and parent programmatically like this:
    public void setParent(final Node parent) {
    if ( this.parent != parent ) {
    this.parent = parent;
    parent.addChild(this);
    public void addChild(final Node child) {
    if ( !childNodes.contains(child) ) {
    childNodes.add(child);
    child.setParent(this);
    or can JPA provider (toplink essentials in J2SE environment) do it for me some way (may be some kind of weaving?).
    What is the best practice for this?
    Any help highly appreciated, thanks in advance!

    In JPA you are responsible for maintaining bi-directional relationships in your own code, it is not part of the specification.

  • DB_FOREIGN_CONFLICT

    Just for testing BDB with Concurrent Data Store and the DPL features I-ve setup a very simple java program, composed by 3 classes:
    ******************* EntityT1.java
    package test;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    import com.sleepycat.persist.model.Relationship;
    import com.sleepycat.persist.model.SecondaryKey;
    @Entity
    public class EntityT1 {
    private EntityT1() {}
    public EntityT1(String name) {
    this.name = name;
    // The primary key must be unique in the database.
    @PrimaryKey(sequence="ID1")
    private int primaryKey1;
    @SecondaryKey(relate=Relationship.MANY_TO_ONE)
    String name;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public int getPrimaryKey1() {
    return primaryKey1;
    @Override
    public String toString() {
    return "EntityT1 [primaryKey1=" + primaryKey1 + ", name=" + name + "]";
    ******************* EntityT2.java
    package test;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    import com.sleepycat.persist.model.SecondaryKey;
    import com.sleepycat.persist.model.Relationship;;
    @Entity
    public class EntityT2 {
    private EntityT2() { }
    public EntityT2(int id1,String description) {
    this.description = description;
    foreignKey=id1;
    // The primary key must be unique in the database.
    @PrimaryKey(sequence = "ID2")
    private int primaryKey2;
    @SecondaryKey(relate=Relationship.MANY_TO_ONE,relatedEntity=EntityT1.class)
    private int foreignKey;
    String description;
    public int getForeignKey() {
    return foreignKey;
    public void setForeignKey(int foreignKey) {
    this.foreignKey = foreignKey;
    public String getDescription() {
    return description;
    public void setDescription(String description) {
    this.description = description;
    public int getPrimaryKey2() {
    return primaryKey2;
    @Override
    public String toString() {
    return "EntityT2 [primaryKey2=" + primaryKey2 + ", foreignKey=" + foreignKey + ", description=" + description + "]";
    ******************* TestMain.java
    package test;
    import java.io.File;
    import java.io.FileNotFoundException;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Environment;
    import com.sleepycat.db.EnvironmentConfig;
    import com.sleepycat.persist.EntityStore;
    import com.sleepycat.persist.PrimaryIndex;
    import com.sleepycat.persist.StoreConfig;
    public class TestMain {
    public static void main(String[] args) {
    File dbEnvPathFile = new File("/var/tmp/dbEnv");
    try {
    EnvironmentConfig envConfig = new EnvironmentConfig();
    envConfig.setAllowCreate(true);
    envConfig.setInitializeCache(true);
    envConfig.setInitializeCDB(true);
    Environment dbEnvironment = new Environment(dbEnvPathFile, envConfig);
    StoreConfig t1Config = new StoreConfig();
    t1Config.setAllowCreate(true);
    EntityStore t1Store = new EntityStore(dbEnvironment, "T1", t1Config);
    PrimaryIndex<Integer, EntityT1> t1pidx = t1Store.getPrimaryIndex(Integer.class, EntityT1.class);
    EntityT1 t1 = new EntityT1("T1");
    System.out.println(t1);
    t1pidx.putNoOverwrite(t1);
    System.out.println(t1);
    StoreConfig t2Config = new StoreConfig();
    t2Config.setAllowCreate(true);
    EntityStore t2Store = new EntityStore(dbEnvironment, "T2", t2Config);
    PrimaryIndex<Integer, EntityT2> t2pidx = t2Store.getPrimaryIndex(Integer.class, EntityT2.class);
    EntityT2 t2 = new EntityT2(t1.getPrimaryKey1(),"T2");
    System.out.println(t2);
    t2pidx.putNoOverwrite(t2);
    System.out.println(t2);
    t1Store.close();
    t2Store.close();
    dbEnvironment.close();
    } catch (DatabaseException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (FileIsNotDirectoryException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (CannotDeleteFileException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    I ran into two problems:
    1) first just using "put()" method for storing records doesn't work, I get the "Operation not permitted: Write attempted on read-only cursor: Operation not permitted" exception, so I had to use putNoReturn or putNoOverwrite (for some reason these work.
    2) the first put works well, but then the second fails with this exception: "DB_FOREIGN_CONFLICT: A foreign database constraint has been violated: DB_FOREIGN_CONFLICT: A foreign database constraint has been violated".
    No way to understand/fix one ot both the problems. Can anybody explain where I'm doing wrong ?
    Thanks

    Hi,
    Thank you for trying/using BDB.
    Item 1 is a bug, and we are fixing it(It only affects CDS, and if you use TDS, it will be not a problem).
    About item2, the failure is caused by incorrect use of foreign key constraint. According to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/dplindexcreate.html#foreignkey , the related indexes should be in the same EntityStore. So, in the sample code, if you put t1pidx and t2pidx both in t1Store or(exclusive-or) t2Store, the PrimaryIndex.putNoOverwrite will work as expect.
    Regards,
    --Winter
    Edited by: Winter on 2010-5-20 下午5:21

  • What is the differences between Parent Currency ,  [Parent] in value Dimension

    What is the differences between <Parent Currency>,  [Parent] in value Dimension? Could some one please provide in detail explanation with examples?

    Hi Tana
    Please see the Value dimension tree on page 213: http://docs.oracle.com/cd/E40248_01/epm.1112/hfm_admin.pdf
    Simple answer would be that [Parent] is <Parent Currency> plus <Parent Curr Adjs>, but this is probably not what you wanted to know
    <Parent Currency> and all Value members identified by opening and closing angle brackets ("<" and ">") are not "real" members, but just pointers to currency defined in the Value dimension. So if, for example, my entity has currency EUR and its parent has USD then when I input data on <Entity Currency> it appears on member "EUR". After running translation this amount converted to USD would appear on <Parent Currency> as well as on "USD" members. If I post a journal on <Entity Curr Adjs> it gets posted to Value member "EUR Adjs" and posting to <Parenty Curr Adjs> posts to "USD Adjs". In the database all of these members are stored in the set of tables called DCE (Currency subcube).
    When the data moves up the Value dimension from <Parent Curr Total> to [Parent] we see the brackets change. Square brackets ("[" and "]") identify members that belong to the Node. The Node is the unique relationship between a parent entity and each of its children. The eliminations and consolidation calculations would likely be different for each parent. Expanding my example, if my EUR entity has two parents both of which have currency USD, then posting a journal on <Parenty Curr Adjs> would apply to both consolidations, while [Parent Adjs] would be specific for a particular parent. Physically, Node members are stored in DCN tables (Parent subcube).
    I recommend the book "Oracle Hyperion Financial Management Tips & Techniques" by Peter John Fugere, Jr. to find out more.
    Hope this helps
    Igor

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Cant figure out how to add an inventory organization.

    Hello all. Thank you in advance for any help. Here is my business need:
    1.) We purchased a new company, and would like to set them up in Oracle as a unique legal entity, with their own Inventory structure, purchasing etc.
    2.) We only have the following modules installed:
    a.) General Ledger
    b.) Purchasing
    c.) Inventory
    d.) Accounts Payable
    e.) Assets.
    3.) We are using applications 11.5.9
    I have downloaded and read through most all the documentation here: http://download-west.oracle.com/docs/cd/B11454_01/11.5.9/html/technologyset.html, read Metalink, and searched the forums, but can not seem to resolve.
    I believe I need to be able to:
    1.) Define a Location (I can do this)
    2.) Define Organizations:
    a.) Business Groups ( I can do this)
    b.) HR organizations (I can do this)
    c.) Legal Entities (I can do this)
    d.) Define operating Unit organizations. I get stuck here. My Legal Entity seems to disappear and can only be seen in Sys Admin->Profiles->System. I no-longer see it in Setup->Organizations.
    Then, there are several steps after this.
    Any guidance / help is greately appreciated. Even a high level overview would be nice with reference to further readings.
    Thanks,
    Colby

    Hi,
    If you post your query in "SCM Discrete Manufacuring" or "SCM General Discussion", it would be probably solicit more replies.
    Rgds,
    Rakesh.

  • Is buying in the US a good idea?

    Hello,
    I currently live in the Netherlands, a small country next to Germany. In about 2 years I will go to college and will need a laptop. As I'm going to an industrial designers Academy I am going to need a laptop with quite some graphic capabilities. Apple intermediately invaded my mind with their super laptops, the mac book pro in particular. Now my question is if it's a good idea to buy the mac book pro 15" in the US? From what I've heard I won't have any repair warranty for in the Netherlands. But is this a big issue? I don't know if the mac book pro brings a lot of issues with it because it will be my first apple computer. I only have experience with apple through my ipod touch 1st gen. Whenever I had problems with that I just went to the internet and found an answer there to my problem.
    It is a big difference if I buy it in the Netherlands or in the US because the price differs from the dutch price 2100 euro's (3108 dollars) for the mac book pro 2.8 GHz and in the US 2300 dollars (1554.05 euro's).
    That differs 808 dollars or 545.95 euro's.
    So does the mac book pro have some problems and are these easily fixable by yourself with a little internet help?
    So what will it be?
    buying in the Netherlands with a higher price but a active warranty. so with lower risk of a unsolvable problem?
    or buying in the US with a much lower price but a chance on unsolvable problems?
    please help me and give arguments.
    thank you.
    Message was edited by: Davinovic

    Hi and welcome to both these forums and when you arrive to the United States. Your question concerning the warranty should be addressed to Apple Support just to make sure, but I would agree that wherever you purchase your Macintosh the warranty should be world wide. Considering the price difference I'd recommend the US. I suspect the difference in price has more to do with EuroUnion VATs than anything else. We don't have VATs here in the states, though you'll have to pay any local sales taxes (I know, the difference escapes me). Though once you're here buying online often avoids even that tax. In the US taxation is largely voluntary (ok ok, think about it). That means if you order online from a company in California and have the item delivered in, say, Indiana the California company will inform you that you have to pay Indiana sales tax on the item, but will not collect it at the time of sale. The burden of paying the tax is upon you, voluntarily submitting the tax to the Indiana Dept of Revenue. While some states are really trying to tighten this up it is still very common practice to simply not pay the local sales tax as no one is tracking this information. This sort of thing relates to the unique relationship between the Federal government and those of the individual, nearly sovereign, states.
    Now as for the MBP I contend you cannot buy a more solid, reliable, fast laptop, period. Firstly, Apple is the number one computer company in consumer satisfaction. AppleCare is worth it. I've had several experiences personally and with friends and family with Apple's warranty fulfillment and it is totally awesome. The MBP itself is state of the art, sleek, and the best industrial design out there (OK Sony comes close, but no one else does). The OS is virus free and very easy to use. You can run Mac OS X, Linux, Unix, and Windows of any flavor, so if you absolutely have to use some vertical market Windows based program it's easy as pie to launch bootcamp or other VM OS and you're in windows.
    I got my first Mac back in '86 and haven't even considered another OS (I did have a PowerComputing clone for a while and frankly even then Apple was better built). The average PC lasts about 2.5 yrs. The average Macintosh about 4.5 years, more than enough to get you through college.
    Keep hitting these forums as you'll find a wealth of information and thousands of helpful hands.
    Again, Welcome!

  • Background job canceled in  Solution Manager system

    Dear all expert ,
    Two background jobs canceled in solution manager  system before some time.
    details-
    Background jobs :
                        1 -  LANDSCAPE FETCH
        Program name : RSGET_SMSY
    Job log : Job started
    Step 001 started (program RSGET_SMSY, variant ,
    The SLD server connection is inactive
    Job cancelled after system exception ERROR_MESSAGE
                       2 - SEND_SYSTEM_RELATIONSHIP_TO_SUP
        Program name : AI_SC_SEND_SYSTEM_RELATIONSHIP
    Job log :  
                       Job started
    Step 001 started (program AI_SC_SEND_SYSTEM_RELATIONSHIP, variant ,
    SOL determined as monitoring Solution Manager system
    SAP customer number unknown for installation number 0020606335
    Job cancelled after system exception ERROR_MESSAGE
    please help me , what should i do ?
    I am waiting for your positive response.
    Regards
    Shubh

    hi,
    You can try following ....
    For the job SEND_SYSTEM_RELATIONSHIP_TO_SUP
    Program : AI_SC_SEND_SYSTEM_RELATIONSHIP
    1. Up to Support Package 09:
    a) Start transaction SMSY.
    b) Choose Shft+F5.
    c) Select the system named in the message.
    d) Choose F6.
    e) Select the "System Data in SAP Support Portal" tab.
    f) Using the input help, fill the system number field with the correct system.
    g) Save the data.
    2. Up to and including Support Package 08:
    a) Start transaction SOLMAN_CONNECT.
    b) Select the system in question in the ID field and choose the filter pushbutton.
    c) Select the system and select "Create configuration".
    d) Fill the system number field using the input help with the correct system.
    e) For example, select the "BW GUI Connection" service type.
    f) Carry out all of the subsequent steps of the Configuration Assistant until you see the "Finish" pushbutton.
    This establishes a unique relationship between your system in the Solution Manager and the system number in the SAP Support Portal. Problems no longer occur with this system when the SEND_SYSTEM_RELATIONSHIP_TO_SUPP job is next run. However, the problem may still exist for other systems (in these cases, you should follow the same steps).
    Hope this will help to solve your issue..
    Regards
    Bhuban
    RKFL

  • Business Components and Database Views - Trouble Creating

    I am trying to create a business component that contains a View that I created in my database. When I get to the fnnal step of creating the business component and it begins to generate the XML and Java code, it bombs out and says that the view object does not support ROWID. I just need to select only GridControl of this view.
    Any suggestions/help would be appreciated. I could not find any info in the JDeveloper help.
    null

    Some options:
    [list]
    [*]Create the entity using the Entity Wizard instead of reverse engineering it from a table. In the entity wizard you can specify the table/view name, then indicate which attribute should function as the primary key.
    [*]Don't bother creating an entity object for this view. You can just create a view object with an "expert mode" query that selects against your database view. It does not need an entity object. Note, however, that without an associated entity you won't get "uniquing" of entity level values, so if another view object being used by the same use changes the data that this grid is showing, the updates won't be automatically synchronized if you go this route.
    [list]

  • SAP JPA and lazy loading

    Dear experts,
      I have a WD application with EJB model. I have faced strange JPA exception (I am using SAP JPA implementation).
      This is 2 Entities with relationship
    @Entity
    @Table( schema = "dbo", name = "class")
    public class ClassEntity {
      private Long id;
            @Id
         @Column(name="id")
         @GeneratedValue(strategy= GenerationType.IDENTITY)
        public Long getId() {
              return id;
         public void setId(Long id) {
              this.id = id;
    private Collection<ClassAttributeEntity> classAttributesById;
        @OneToMany(mappedBy = "classByClassId", fetch=FetchType.LAZY)
        public Collection<ClassAttributeEntity> getClassAttributesById() {
            return classAttributesById;
        public void setClassAttributesById(Collection<ClassAttributeEntity> classAttributesById) {
            this.classAttributesById = classAttributesById;
    @Entity
    @Table( schema = "dbo", name = "class_attribute")
    public class ClassAttributeEntity{
    private Long id;
            @Id
         @Column(name="id")
         @GeneratedValue(strategy= GenerationType.IDENTITY)
        public Long getId() {
              return id;
         public void setId(Long id) {
              this.id = id;
        private ClassEntity classByClassId;
        @ManyToOne
        @JoinColumn(name = "class_id", referencedColumnName = "id")
        public ClassEntity getClassByClassId() {
            return classByClassId;
        public void setClassByClassId(ClassEntity classByClassId) {
            this.classByClassId = classByClassId;
      I want to execute JPQL query
    "SELECT c FROM ClassEntity c"
    ; But I get this exception:
    javax.persistence.PersistenceException: The relationship >>classAttributesById<< of entity {test.ClassEntity(id=1686)}cannot be loaded because the entity is detached
      I can overcome it using EAGER loading -
    @OneToMany(mappedBy = "classByClassId", fetch=FetchType.EAGER)
    , but I really dont need ClassAttributes in this situation! I have many thousands of classes and eager loading provides extremly poor perfomance. What can I do with this problem?
      Thanks in advance for any advice.

    Hi Andrey,
    I assume you are getting the exception if you atempt to access "classAttributesById" ouside the transaction, in which you executed the query, i.e. after the persistence context, in which the query has been executed is closed.
    You have got to make sure that all entities you need to access are read as long as the persistence context executing the query is still open.
    How to address this depends a bit on whether you need to access all related entites or only some.
    If you need to access the relationship "classAttributesById" for only some instances of "ClassEntity", you could for example call size() on "classAttributesById" for these selected instances of "ClassEntity" (within the same transaction/persistence context".
    If you need to access all related entities, theoretically, fetchType = EAGER would be the right choice. However, as you have observed, SAP JPA can't handle this efficiently at the time beeing. Therefore,
    I'd rather suggest that you firstly load all related attributes with a query
    "SELECT ca FROM ClassAttributeEntity ca"
    and secondly load the "ClassEntity"s
    "SELECT c FROM ClassEntity c"
    this should execute efficiently.
    Sorry for the inconvenience.
    -Adrian

  • Sales Analysis by Item Group (Monthly) - To include Sales Employee Name

    Hi,
    I have added Sales Employee Name in the Sales Analysis by Item Group (Monthly) report by A/R Invoices. I have added this under Repetitve Area Header0. However, the sales employee name showed in the preview is different than the criteria entered.  It seems that the report only the first Sales Employee Name in the report.
    Anyone have any idea? Thanks in advance
    Regards,
    MH

    That is a good question.  You have to find out any unique relationships between your Sales Employee and your sales analysis data if there is. Hope the help below can assist you:
    Relate to
    This option is relevant for special scenarios only and requires knowledge of SQL.
    This field is used for retrieving data related to key records found in tables other than the table linked as default to the current print template.
    A key record is a field used as a primary key in a certain table. This key record functions as the identifier of the record, and, therefore, it is required to retrieve any additional data related to it.
    Following is an example:
    e.g.If you need to print the name of a certain bank, which is not linked to the table used in the current print template, you must first create a Text field of Database source type using the required table and select a key record, such as Bank Code.
    Then, you need to create an additional Text field of Database source type. Select the table again, select the required column (such as Bank Name), and enter the unique ID of the field with the key record in the Relate to field.
    There might be two or more key records in the same table. In such a case, these two key records are both required for retrieving the data.
    Identical bank codes are used in many countries. If you need to print the name of a specific bank, you need to link it to a relevant country, in addition to its relevant bank code.
    You are currently working on a print template for Incoming Payments. However, you need to retrieve data (such as the business partner's bank name) linked to the key record Bank Code from the Bill of Exchange for Payment table, rather than from the Incoming Payments table.
    In the Relate to field, select the unique ID of the field containing the required key record. In this example, this is a Text field of Database source type containing Bill of Exchange for Payment in the Table field and BP Bank Country in the Column field. The drop-down list contains the unique IDs of all the fields that are situated in the same area as the current field.
    This link makes the system retrieve the Bank Code linked to the BP Bank Country field found in the Bill of Exchange for Payment table.

  • Mapping in TopLink workbench: Sorting order for one-to-one mapping field

    Hi,
    we have a requirement; though it is one-to-many relationship, we wanted to map it as one-to-one, so that we get latest of the mappped entity based on attribute:*noOfVisits*. For this, I am trying to make descending order by noOfVisists in workbench; but no provision there.. it is available only for one-to-many relationship;
    If I map as one-to-many, I can specify the sorting order; but is there any option to limit the max rows of it to *1*.
    Pls suggest the solution; I am trying to avoid to write named query for this; and wanted to get from the entity itself by navigating to one-to-one relationship entity.
    Thanks,
    Dhana kumar.

    Hello,
    If you want strictly JPA options, I'd either not map it and query for it (which you can then store it in the object if you want in a transient attribute), or map it as 1:M with the order by and have a getSingleVistedChild type method that returns the first element if its noOfVisits value is 1.
    Mapping it using the 1:1 as you are asking can be done. All that is required is that you add selection criteria for the query used in the mapping as described here:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/MappingSelectionCriteria
    Best Regards,
    Chris

  • Exception thrown while submiting  BPM project to OER from jdev

    exception thrown while submiting BPM project to enterprise repostiroy from Jdeveloper.
    1) all configurations done. and i am able to submit wsdl files.
    C[repository.submit] No unique configured entity found for file name: [preferences.xml].
    [repository.submit] Skipping introspecting of file: file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/config/preferences.xml as no introspection configuration found.
    [repository.submit] Introspecting file: [file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn]
    [repository.submit] Trying to get introspector for file type: .bpmn
    [repository.submit] Getting harvester for fileType: .bpmn
    [repository.submit] Loaded MetadataIntrospector class: class com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector for entity [BPMNArtifactEntity].
    [repository.submit] Loaded MetadataIntrospector class [com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector] for fileType: [.bpmn].
    [repository.submit] Introspecting file: file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn
    [repository.submit] Creating a new ArtifactAsset for URI: [file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn].
    [repository.submit] Failed to generate ArtifactAsset due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] Introspection error due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    [repository.submit] Introspection failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    [repository.submit] Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] An error occurred performing the Repository operation:
    [repository.submit] com.oracle.oer.sync.framework.MetadataIntrospectionException: Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    BUILD FAILED
    com.oracle.oer.sync.framework.MetadataIntrospectionException: Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:655)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    Caused by: org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         ... 18 more
    Total time: 3 seconds
    Process exited with exit code 1.

    exception thrown while submiting BPM project to enterprise repostiroy from Jdeveloper.
    1) all configurations done. and i am able to submit wsdl files.
    C[repository.submit] No unique configured entity found for file name: [preferences.xml].
    [repository.submit] Skipping introspecting of file: file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/config/preferences.xml as no introspection configuration found.
    [repository.submit] Introspecting file: [file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn]
    [repository.submit] Trying to get introspector for file type: .bpmn
    [repository.submit] Getting harvester for fileType: .bpmn
    [repository.submit] Loaded MetadataIntrospector class: class com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector for entity [BPMNArtifactEntity].
    [repository.submit] Loaded MetadataIntrospector class [com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector] for fileType: [.bpmn].
    [repository.submit] Introspecting file: file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn
    [repository.submit] Creating a new ArtifactAsset for URI: [file:/C:/JDeveloper/mywork/RegistryPocServcie/Project1/default.bpmn].
    [repository.submit] Failed to generate ArtifactAsset due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] Introspection error due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    [repository.submit] Introspection failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    [repository.submit] Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    [repository.submit] An error occurred performing the Repository operation:
    [repository.submit] com.oracle.oer.sync.framework.MetadataIntrospectionException: Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
    BUILD FAILED
    com.oracle.oer.sync.framework.MetadataIntrospectionException: Artifact harvest failed due to: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:655)
         at com.oracle.oer.sync.framework.ant.IntrospectTask.performRepositoryWork(IntrospectTask.java:314)
         at com.oracle.oer.sync.framework.ant.RepositoryTaskBase.execute(RepositoryTaskBase.java:182)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    Caused by: org.apache.xmlbeans.XmlException: C:\JDeveloper\mywork\RegistryPocServcie\Project1\default.bpmn:0: error: The document is not a definitions@http://www.omg.org/bpmn20: document element namespace mismatch expected "http://www.omg.org/bpmn20" got "http://www.omg.org/spec/BPMN/20100524/MODEL"
         at org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
         at org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1273)
         at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
         at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
         at org.omg.bpmn20.DefinitionsDocument$Factory.parse(Unknown Source)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.generateArtifactAsset(BPMNIntrospector.java:131)
         at com.oracle.oer.sync.plugin.artifact.bpmn.BPMNIntrospector.introspect(BPMNIntrospector.java:89)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
         at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
         at $Proxy0.read(Unknown Source)
         at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
         ... 18 more
    Total time: 3 seconds
    Process exited with exit code 1.

  • Is it possible to use a secondary index in embedded persistent class

    Hi,
    I'm new to Berkely DB Java Edition and have just started playing with it.
    To express a relation between two entities Foo and Bar, I am trying with an assocation class FooBarAssociation that is not an entity but rather a @Persistent-annotated embedded class in Foo (Foo has a collection of FooBarAssociations). Now I'm looking for a way to find all Foos associated with a given Bar id by use of an index. Can this be done? Is the use of the SecondaryKey in the embedded class at all correct? If this is not the way to go, can it be done any other way (except from using three entities)?
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
    @Persistent
    class FooBarAssocication {
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_ONE)
        private int barId;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
        private Set<FooBarAssocication> fooBarAssociations = new HashSet<FooBarAssocication>();
    }Any help much appreciated.
    /Martin Söderström

    Martin,
    So could this be done with the embedded persistent class like this, or should I give up and make the FooBarAssociation class an entity of its own?A separate relationship entity class will definitely work, as described in the SecondaryIndex javadoc.
    But SecondaryKey fields have to be at the top level of an entity class, so an embedded class that contains the secondary key (and other attributes) won't work.
    Logically, you have a one-to-many relationship from Foo-to-Bar, and the relationship has attributes.
    If you store the relationship in the Bar entity, then it's pretty easy because there is one Bar instance per relationship and other attributes can easily be stored there. I know you said you want to put it in the Foo class because it logically belongs there, but I'll show this alternative anyway for completeness:
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
        @SecondaryKey(relatedEntity=Foo.class, relate=Relationship.MANY_TO_ONE)
        private int fooId;
        private Date createTime;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
    }If it's really important to put the relationship fields into the Foo class, then you can do something like the following. It's messy to attach relationship attributes, but it can be done with either a parallel list or map.
    Also, be sure to read the "Key Placement with Many-to-Many for Related Entities" section of the SecondaryIndex javadoc page.
    @Entity
    class Bar {
        @PrimaryKey
        private int id;
    @Entity
    class Foo {
        @PrimaryKey
        private int id;
        // Use one of the following, either this:
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_MANY)
        private List<Integer> barIds = new ArrayList<Integer>;
        private List<Date> barCreateTimes = new ArrayList<Date>;
        // Or this:
        @SecondaryKey(relatedEntity=Bar.class, relate=Relationship.ONE_TO_MANY)
        private Set<Integer> barIds = new HashSet<Integer>;
        private Map<Integer, Date> barCreateTimes = new HashMap<Integer, Date>;
    From reading the documentation I also get the feeling that I could use the Base API and set up a SecondaryDatabase to create a secondary index for a case like this (correct?).Yes, you could do that, but I would hate to see you move to the base API just for this issue. The DPL is much easier to use (and easier for us to support).
    Anyway, so far the BDBJE looks very promising to us. It may replace our current Hibernate solution.Great. We'd love to hear more about what you're doing, why JE works well for you, etc, either on the forum or privately if you prefer (mark.hayes at o.com). It helps us a lot to know what people are doing with JE.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How can i pass a parameter to the query to filter the result of this lookup

    Hello, i'm developping a web application with JDeveloper 10.1.2 and JHeadStart. i realy need to know how can i filter the lookup (LOV) query result. in other word, when i click on the lookup, it show all the row that exist in may data base table. wha

  • Trying to Migrate a Mailbox to O365

    Hello.  I don't know much about scripting or PowerShell but I'm having troubles getting something to work and I'm hoping that someone might help me out.  I am running O365 in a hybrid config with my on premise Exchange 2010 server.  Because I'd like

  • Error when purchasing an album: "Network connection reset"

    Every time I try to purchase a specific album (Pokémon HeartGold & Pokémon SoulSilver Super Music Collection, to be precise), I get an error claiming "The network connection was reset." Every time this happens, I check my network connection, and it i

  • Network Configuration requirements not executed, why?

    During installation all checks are passed but this one, is there any particular reason for this check not to be executed? Should I worry over it not beein executed? Checking Network Configuration requirements ... Check complete. The overall result of

  • Magic Trackpad on fresh reboot

    I just recently purchased the magic trackpad and have found a significant annoyance. After a reboot or power on (sleep seems to be unaffected) until I use the regular mouse to login I cannot use the trackpad to click anything at all. The trackpad mov