Different types of Merge seems no difference

I'm using Toplink 9.0.4.5
From the API doc and some previous posts: Create New Object with relationship with an existing object
I understand that shallowMerge will "only merges direct attributes, and does not cascade or merge relationships"
I some tests with the following Object Model:
objA --- (M:M, non privately owned) ---> objB --- (M:M, privately owned) ---> objC
No Indirection is set for the mappings.
I have also defined test case as follows:
objA = session.readById();
objC = objA.getObjB().getObjC();
objC.setSomeThing(NewString);
uow.shallowMerge(objA);
I expect that the change on objC will not be wrtten into DB... However, it did updated objC and persist the change to DB...
I have tried with merge(), mergeWithReferece() and deepMerge() and all of them generate updates to DB ...
Could anyone explain why they have the same behaviour?

The merge() APIs are for merging detached objects, i.e. objects that have be serialized. Where does your objA come from, and has it been serialized? If objA was read through the unit of work, then merging it will have no effect and the changes will have already been detected.

Similar Messages

  • Convert different types of files and merged them into one pdf

    Hi, everyone. I'm girl from China.
    There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.
    I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way
    And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?
    Thank you very much.
    If I can finish this, I would like to publish my code on this forum.

    Wow, that's great news. But how should I add the Action?
    1. There is no action named "Covert files into Pdf" in the tools panel....
    And if I write Javascript code to do this action. How should I write it?
    app.openDoc({
    cPath: "/c/temp/myPic.jpg",
    bUseConv: true
    These code only works when I specify the path of the file.
    If you know how, pls tell me..........

  • Can a Merge Publication have (2 different types of subscribers) a web subscriber and a non-web subscriber ?

    Can a Merge Publication have (2 different types of subscribers) a web subscriber and a non-web subscriber ?
    Ranga

    Yes, in fact some people will apply the snapshot when they are in the office and then change the parameters on their merge agent to do web synchronizations from then on.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Junked old macbook for a new one. changed apple id password from a different mac. i want to login and it asks for name and password. no matter what i type i cant seem to login. any way help?

    junked old macbook for a new one. changed apple id password from a different mac. i want to login and it asks for name and password. no matter what i type i cant seem to login. why cant i just enter my apple id and password. or is there a way to change whatever name and password are on the new one from another mac so i can login. anything helps...thanks

    Just open System Preferences>Users & Groups and unlock the preference pane with your root password.
    Set the New Account to be an Administrator and fill in the rest of the data and then click "Create User".
    I would suggest using this user to be YOU with admin capabilities. I wouldn't use the root user - too much damage could occur if you're not sure what you're doing. If you have files, etc., that you want to move to this account, simply but them in the Shared folder - or if you 'rescued' some old files and the like from your 'trashed' MBP, you can put them in your NEW admin account folders.
    Hope I've explained myself well - call back with any questions!
    Clinton

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Unable to open multiple files of different types simultaneously

    It seems  the MS has made some changes in Win7, and I am no longer able to open multiple files of different types (.doc, .pdf) in Explorer by highlighting the desired files and hitting Enter.  It still works if I select only one file type, but
    the ability to open multiple files of different types has been in place since Win95, and maybe since Win3.11 (my memory is a little foggy that far back).

    Hi,
    Yes, this feature was removed from Windows 7. Now you just can open multiple files which are the same type at once.
    Karen Hu
    TechNet Community Support

  • Different types of mapping techics

    hi expects,
       please provide some mapping technics.

    Rohit,
    It depends upon the requirements. So after going through your requirements you will decide which type of mapping you want to use. Subsequently you will develop the mapping.
    Check this threads for different types of mappings and their advantages and disadvantages:
    Differences between the Mapping types.
    Re: Types of Mappings and their Use
    ---Satish

  • Polling File having different type

    Hi,
    I have a use case where i need to read file having different type of delimiter data eg :
    Abc,123,xyz
    Thanks.

    Hi,
    This seems doable with nxsd. In our case, each row seems to be a different type of record and you can handle this case using a sequence of elements (one for each record type).
    For example,
    <schema...>
    <element name="terminated">
      <complexType>
        <sequence>
          <element name="record1" type="tns:record_type1"/>
          <element name="record2" type="tns:record_type2"/>
          <element name="record3" type="tns:record_type3"/>
        </sequence>
      </complexType>
    </element>
    <complexType name="record_type1">
       <sequence>
              <element name="elem1" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
              <element name="elem2" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
               <element name="elem3" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/> 
       </sequence>
    </complexType>
    <complexType name="record_type2">
    <sequence>
              <element name="elem1" type="string" nxsd:style="terminated" nxsd:terminatedBy=";"/>
              <element name="elem2" type="string" nxsd:style="terminated" nxsd:terminatedBy=","/>
               <element name="elem3" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/> 
       </sequence>
    </complexType>
    <complexType name="record_type3">
       <[...]>
    </complexType>
    </schema>

  • Character Panel isn't updated when selecting different type objects - Illustrator CC 2014.1.0 (october release)

    If I have a Type Object selected that is, for example,
    set to Helvetica, Bold 32pt size and 40pt leading,
    when I select a different Type Object with entirely
    different settings, the Character Panel does not refresh
    to reflect the currently selected object.
    This seems to happen more often than not - maybe 80% of the time.
    My current work around is to change a value in the panel, then quickly change it back.
    Current setup is a mac pro
    OS X 10.9.5
    Illustrator CC 2014.1.0 (october release)

    Hi Marshal,
    Try to reset the preferences to default:
    Press and hold Alt+Control+Shift (Windows) or Option+Command+Shift (Mac OS) as you start Illustrator. Your current settings are deleted.
    Remove or rename the AIPrefs file (Windows) or Adobe Illustrator Prefs file (Mac OS). New preferences files are created the next time you start Illustrator.note: It is safe to remove the entire Adobe Illustrator Settings folder. This folder contains various preferences that can be regenerated.
    Hope this helps.
    Regards,
    Sumit Singh

  • Usage of different types of currency units

    Hi All,
    Can any body let me know the scenarios to use different types of currencies i.e.  0doc_curry(document currency), 0currency e.t.c ?
    Thanks and Regards,
    Prashant

    Hi
    Check the below link.
    http://www.sap-img.com/financial/explain-the-difference-in-currency.htm
    Hope this helps
    Regards
    Shilpa

  • Good design choice, different types of customers, from webservice

    Hi, I have thoughts about good design pattern, when doing this:
    You have a webservice where customers coming into your system. The customers are private ones, business ones, and big business types.
    These 3 customer types has different needs, and must have different values like companyname, social security number, etc etc.
    The customer also has some shared types, like customerid, created, updated, etc.
    So what you want to do is to have an interface or an abstract class containing common methods for the customer, then you will create subclasses for the different types.
    I was thinking about creating a factory class and pass in the customer object retreived from the webservice, and in the factory process method create objects on the different subclasses based on what kind of object you get in (private, business, etc).
    So, webservice gets a private customer object, you serialize it and then you pass it into your factory class. And back you get a customer object.
    Now you want to do business logic on the object, storing it to a database, etc.
    So you might still have to create different scenarios based on if its customer type.
    The basic idea is that you want to get the object from webservice, pass it to a factory and get back a customer object which you want to do things with.
    What do you think, what is a good design solution to the problem described?

    To be clear "pattern" has a specific meaning. Your description is a design not a pattern.
    Is the small business one never going to become a big business one?
    Is a big business one never going to become a small business one?
    If the answer to either is yes, then you have one entity with different attributes, not two.
    I have no idea why serialization would matter in this. And your description doesn't explain that either. If you are talking about communication between different boxes then you need a communication layer (and it doesn't appear you are at the level yet where you need to decide the specifics of how that is handled.)
    It is unclear why you would want a factory. But if you just want the experience then you could probably use it.
    Your description isn't nearly complete enough to define how the overall system should behave which is what you seem to be also describing. You need to seperate what the system will do for how it will do it (the design.)

  • Is it normal to have two different types of software on the Adobe CC?

    When I go to open the Adobe CC and download my apps, it shows two different types of software. For instance, when I look at Photoshop one version is CS6 and the other is CC. I can download both and I was wondering if there is a difference between the two? And is that a problem or a bug?

    cs6 is an older version of photoshop.  cc is the latest version.

  • Help needed - setting password policies for different types of accounts

    Hello,
    We have a situation where we have different types of users created on a solaris server. We have regular users, admins, functional accounts and device accounts. Of course solaris does not differentiate between regular user and other types, i think. The default password policy applies to all the users on the server. I want to configure different policy for different types of user accounts. Is it possible? The difference between the accounts on our side is
    Regular user accounts - 8 digit numbers ( 00667265) - expire password every 90 days
    Functional accounts - 8 digits starting with F ( F0253466) - do not expire, but password length must be 10-12 and complex
    Device Accounts - 8 digits starting with Z ( Z2367249) - do not expire, but password length must be 12 and complex - like upper case, lower case, number, special chars etc.
    Is it possible to set up different password policies, is so how?

    The password expiration policy is pretty easy, it can be set on a per account basis when the account is created. I'm not aware of a simple way to define a complexity policy for groups of accounts but the policy is enforced using pam, so you should be able to write a pam module which would enforce your complexity policy. The pam manual page would be a reasonable starting point for learning about pam.

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Mini-DVI to DVI Adapter issues (2 different types, no info from Apple)

    as you can see below, I have an iBook G4 1.2GHz
    three weeks ago I got a Mini-DVI to Video Adapter
    there were two different types in the Apple Store because there are two generations of Mini-DVI outputs, therefore some close inspection and it was easy to get the right part.
    Now, three weeks later, all that stuff is off the shelf so it looks like they only have up the more recent size plug. Thus, I cannot find the slightly smaller Mini-DVI to DVI Adapter. (typical Apple, probably just wants me to spend more money on a new machine)
    Anyone have a line on where to buy the older type of adapter?
    be very careful out there. They are pimping the heck out of the newer generations. I'm looking for the older one.
    (if not, I'll probably just stop buying Apple stuff. No need for the headache any more since they are no longer really different products. Just fashion)

    I have both an iBook G4 and a MacBook, which use each of the adaptors you have described. I found the information on the Apple site by identifying the Model iBook I had, Dual USB, and looking at he detailed views of each model to identify the type of 'video output port'. I obtained a '2 input' VGA switch from Tiger Direct to be able to switch my monitor from iBook to MacBook.
    Hope this helps!

Maybe you are looking for

  • How to get a tree item when my mouse moves

    I want to get the tree item which my cursor points to when my cursor moves over a tree. I can get a row index in itemRollOver event, but it seems useless. And I don't know how to use getObjectsUnderPoint method. Is there anyone who can help me?

  • Question on Data Driven Graphics (non-English)

    I am trying Data Driven Graphics with Illustrator CS4 on Win. The program works fine with English XML data, however when I try other non-English language, Illustrator cannot show characters like é,è,ë. The data is in XML UTF-8 encoding. Anyone could

  • How to write to file using fixed width columns

    I need to write some data to a text file such that it is formatted in columns of fixed width. Each column can have different width. eg if i have to write 5 fields in each record the first field would be of 5 characters, second field of 3 characters a

  • Please help! permanent kernel panics in 10.8.2

    I just formated my macbook pro because of some kernel panics that happend more and more often. I just formated everything, did a fresh install and now I have installed some programs. But now I am having again kernel panics. could somebody please help

  • Strange email issue

    So I have synced two other email addresses with my BlackBerry other than the BlackBerry address itself. One of them is a gmail account. Let's say it's [email protected] Whenever I send or reply to an email on my BlackBerry that was sent to or from th