Copying objects from pm to pm, relations

Hi
We want to copy some data from a relational database to a Versant database
using Kodo JDO. The basic approach is to read some objects, detach them
from the relational PM, and attach them to the Versant PM.
Because the database is BIG, letting JDO take care of the relations is not
feasible, this would take too much memory. Doing the copy process in small
bytes won__t work either, since this will result in double entries in the
target database for tables like __country__ (same value, different oid).
So we are now thinking of another approach. We want to read and write the
tables one by one, without making relations between objects. After copying
to Versant, we will run queries there for all relations using the key
fields (that we will have mapped as simple values).
When trying to do this, we ran into this problem: if we include in our
Java class fields for the relationship objects, Kodo will complain there
is no mapping for them when reading from the relational db.
One solution I have come up with is to declare these fields transient,
copy the data to Versant, then change the Java code and Versant schema to
make them non transient. Very cumbersome and not straightforward to
automate.
Another solution is to describe all the mappings in the JDO files, and
make sure the fields are not in the default fetch group. But this is a lot
of work, especially since we then don__t use the relations at all !
Is there another solution to this, a sort of mapping that we can use both
in the relational case (there it would be a sort of null mapping) and the
Versant case ?
Regards, Luc

luc wrote:
Another solution is to describe all the mappings in the JDO files, and
make sure the fields are not in the default fetch group. But this is a lot
of work, especially since we then don__t use the relations at all !By default, relations are not in the dfg.
Is there another solution to this, a sort of mapping that we can use both
in the relational case (there it would be a sort of null mapping) and the
Versant case ?In the Kodo mapping information, you can set a persistent field to use a
'none' mapping:
<jdbc-field-map type="none"/>
That might do what you're looking for.
-Patrick

Similar Messages

  • Copying objects from Illustrator CS3 to FreeHand 11.0.2

    Working on a Mac in OSX 10.4.11, I was able to select and copy objects in an open Illustrator CS2 file and paste them into an open FreeHand 11.0.2 file, where they would be fully editable. After migrating to OSX 10.6.2 and upgrading to CS3, this no longer works - the objects selected and copied from Illustrator either do not appear (only corner indicators are visible) or a pale version appears as an uneditable low-rez image with funny colors....
    Because there are so many missing features in Illustrator, it's important for me to be able to work back and forth between the two apps.  Has anyone been able to achieve this (formerly) simple interactivity?

    I got the following post from Danny Haas:
    If you go to Edit>Special>Paste Special and then select AI/EPS from the list
    it should paste just fine. It works well for me.
    Worked for me too, although text was not imported as editable text.  To do
    that had to special paste the text separately as unformatted text, and then
    reformat in FH.
    From: Judy_Arndt <[email protected]>
    Reply-To: <[email protected]>
    Date: Wed, 13 Jan 2010 17:19:27 -0700
    To: PETER AGOOS <[email protected]>
    Subject: Copying objects from Illustrator CS3 to FreeHand 11.0.2
    I skipped AICS3, but now use AICS4 for some tasks.
    The only solution I've found is to save the AI CS4 file as AI 8, open that
    in FHMX and copy from there.

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • Is there a trick to copying objects from InDesign CC to CC 2014 documents?

    When I attempt to do this, the objects pasted to the InDesign 2014 document are not directly editable; they seem to have become some sort of lowres, uneditable item - whether they were originally text objects or graphic objects.
    Further, if I paste two objects at once, they are combined into one such uneditable item. The same thing happens if I attempt to go the opposite direction and paste objects from 2014 into CC.
    Thanks, for your help!

    I like to expand my suggestion for working with InDesign library files. One library created in InDesign CC, one library created in CC 2014. As already mentioned, you can have both libraries open in both versions. Drag and drop the objects you want to copy/paste to the appropriate library and drag them out to your page in whatever InDesign version you currently working:
    The little lock icon at the bottom of the library will indicate that you cannot add items. But you can use the assets stored in the library.
    Left: InDesign CC
    Right: InDesign CC 2014
    Of course opening a CC file in CC 2014 is possible and copy/paste from that. But you cannot open a CC 2014 file in CC. You first have to save a IDML file and open that in CC. Working with two libraries will be easier when you permanently like to exchange assets in both directions.
    Uwe

  • Copy object from one authorization object classe to another one

    Hello experts,
    due our revision we have the demand to copy our custom context sensitve authorization object from the old authorization class to a new one.
    Ist this generally possible? What are the impacts?
    Any ideas?
    Many Thanks!
    Marco

    > due our revision we have the demand to copy our custom context sensitve authorization object from the old authorization class to a new one.
    That is a strange revision (audit) demand... Did you challenge them whether they have ever done this before and survived as release upgrade?
    Is SAP_ALL otherwise okay for them? For example that people can write their own programs or maintain PRGN_CUST to include Z-classes again...
    Have you tried to simply remove all profile assignments to SAP_ALL and replace them with proper roles and restrict SAP*'s HR profiles to that which applies to all users which are not employees?
    You are definately barking up the wrong tree here by moving SAP objects to Z object classes and expecting it to be secure...
    Cheers,
    Julius

  • How do I copy objects from a flash shared library?

    I'm a total beginner at Flash and I've been given the task of creating a new version of a flash component we use in house. The current version uses a shared library of objects in a separate .swf file.
    One of my tasks is to copy the items from the shared library into this new version so only the one .swf file is needed for everything to work. I've figured out how to unlink items in the new version from the shared library but that doesn't seem to copy them into the new version. can someone tell me how to do the copying bit please? I'm using Flash CS3.

    Drag it to the computer’s internal drive and then to the library in the open iTunes application window.
    (114990)

  • Copying objects from InDesign to paste into Photoshop: new file always defaults to 72 dpi.  How do I fix this?

    In previous versions, you could copy and object in another piece of software and Photoshop would automatically size the new file to take the object at 300 dpi.  In CS this appears not to be the case, the default size being 72 dpi.  How do I fix this? 

    Please refer PS system requirements from this link:
    http://helpx.adobe.com/photoshop/system-requirements.html#Photoshop CC system requirements/
    Regards,
    Ashutosh

  • Copy Objects from SWCV1 to SWCV2

    Dear Experts,
      I need your help  friends in following scenario:
    SWCV1----
    > SWCV2
    I need to copy all objects( Data types to Interface mappings ) from Software component version 1 (SWCV1) to
    Software component version 2.
    I have created new namspace in SWCV 2. I want to copy all the objects into that namespace.
    Kinldy tel me how to acheive this part.
    Kindly update me in SWCV2 due i need to change the following checkboxes at  bottom of the Page while copying the objects:
    Object are Original           Objects are modifyl

    Hi Karthik,
    Copy the Namespace With in the Same SWCV
    If we want to copy the namespace with in the same SWCV means create the new Namespace & we have to copy the Objects Individually. And Change the Namespace in newly copied Message Type with new Namespace. So that this will reflect in MM. select the new Message type in the new message mapping.  Otherwise Error may come.
    Copy the Namespace Between Two SWCV
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e8/e8573ba5f13048be50532fc3fcea9c/content.htm
    REgards
    Seshagiri

  • How to copy object from transport request to another transport  request

    Hi All,
    Can some body tell me how to copy the objects which are there in on transprot request to another transprot request ? I think we can do this from the transction SE09 but I am not getting how to do this.
    Thanks&Regards
    Mahesh

    Hi,
    step 1.Go to se10, give your user id and clik display.
    step 2.There will be list of transport requests, go the respective request and point
               the cursor on the object under that request and click on delete button.
    step 3. Assign new request to the objects deleted.you can do this by activating all the objects once again.
    Regards,
    santhosh

  • Copy object with clipping mask from illustrator to photoshop

    I want to copy objects from illustrator to use in photoshop, but the eps file that i am working in has a clipping mask and when i attempt to copy objects in that file from illustrator 6 to photoshop 6, portions (in some cases) all of the object turns black or gray.  I'm sure this is a simple noob error (hope my question is clear enough), and it's driving me nuts.  I have searched for solutions using terms "clipping mask, black, copy, move, illustrator, photoshop, etc." and can't find any discussions on this topic.  Can you please help?
    Here are the print screens to show you what i get in ai and ps -
    (see blue outlined oval object selected - opaque white gradient)
    (when moved to ps, opaque whitish oval turns black)
    I'm such a noob!  Thanks in advance for your help!

    You simply lose the blending modes and transparency settings because this stuff works differently in both programs. You will have to reinstate it manually e.g. if the white highlight is created usuing Add blending mode, you will ghave to use the same in PS...
    Mylenium

  • Problems doing copy/paste from Flash to Illustrator

    This is a problem I've had since Flash 8: when doing a
    copy/paste from Flash to Illustrator (on Windows), there's extreme
    degradation of the artwork, sometimes to the extent that no actual
    art is even copied. All the curves seem to be approximated with
    straight line segments, but at some point it just seems to give up
    even trying, leaving an unidentifiable blob for most of the object.
    As I said, sometimes it doesn't even copy anything at all -- all
    that shows up after pasting into Illustrator is an empty group.
    The weird thing is that this process worked fine in Flash MX
    2004. What could possibly have changed? I was sure with CS3 it
    would be fixed, but it wasn't. I haven't tried Illustrator CS4 yet,
    but copying from Flash CS4 to Illustrator CS3 produces the same
    problem.
    I've seen a few other reports of this problem in other
    forums, but I've encountered it on every install of Flash and
    Illustrator I've tried (admittedly, all Windows machines, but three
    or four different ones, both XP or Vista). Can anyone here confirm
    that this problem exists or doesn't exist on their computer? To
    test it, create a piece of art with plenty of curves and several
    colors in Flash, then copy and paste it into an illustrator
    document.
    If this problem is as widespread as my experience seems to
    indicate it is, why hasn't it been fixed in two major revisions of
    the software? Is Adobe even aware of it? If not, how can I let them
    know? I'm getting majorly sick of having to deal with it.
    Illustrator used to be a much larger part of my animation process,
    but now I can't use it how I really want to because of the bad copy
    and paste functionality.
    -David

    Hi,
    The integration between Flash CS3 and Illustrator means you
    can copy objects from Illustrator to Flash and i think if you copy
    from Flash to illustrator or Photoshop, you would not get a good
    results.
    You can solve your problem by exporting your Flash work as
    .AI.
    Your idea about the ability to copy from Flash to Illustrator
    is a good idea although Illustrator can not read some of the Flash
    imported information correctly. But it is still a good enahcement
    idea. There is a link where you can add suggestions but I do not
    remember it and I am replying using mobile, so my browsing
    capabilities is limited.
    I will try to post the link here when I got to my back normal
    connection
    Thanks alot!!

  • Inserting objects from one PDF document to another in Acrobat XI

    When I copy objects using "Edit Text & Images" and insert it to another document, objects are insert in any place of document, but when document "A" have view "Fit to screen" and document "B" have same view and I copy object from A and insert  to B, object in B will insert to same place (exact) how it was in A. It works fine in Acrobat 9, 10. It didn't work in Acrobat XI (11.0.3). Does any know how to fix it?

    The PDF template we need to copy the form fields "to" doesn't start out having any form fields. It is the fields that we need copied from a previous year's PDF template.
    Here's an except from my original post: "I am looking for a way to copy the form fields from an existing PDF document (last year's PDF in our case) and copy the form fields into a new PDF document (that does not yet have any form fields defined)"
    The "new" PDF template is a complete "paper" form with updated legal text and calendar year referrences but NO form fields. In our IS group, we then take these forms, add form fields to them and are then able to populate them with database-resident user data. We serve them up to the user in their browser pre-populated with their application data.
    So again, our need is to find a way to copy form fields from "last year's" PDF template and copy just the form fields to an fresh "new year's" PDF template that contains no form fields to begin with. What we begin with is just a PDF representation of a paper student loan application.
    Thanks for the suggestion!

  • Importing objects from excel into drop down menu

    Hi!
    I have tried to copy objects from excel while constructing a drop menu in forms central. Sadly, my 500+ objects appear as one choice instead of uniqe items. 
    Is it possible to import values from an excel column to be shown as single items in a drop down menu?
    /Martin

    Hej
    I have the opportunity to choose Acrobat Forms as an alternative form for this survey.
    Do you know if there is possible to get the 500+ into a list in a more elegant way than manual input?
    Hope you have an "elegant" solution for me even if the Forum is not all correct for this question.
    Martin

  • Copy Objects

    I am sure every one of you would have come across this type of code. We copy objects from Domain to application layer or from Data layer to business layer.
    They are mere copy and if the DO's , BO's are long, we ahve to write so many methods like convertToDomain object etc. I am wondering if there is a pattern that we could apply to handle this generically.
    One of the thing I am thinking of is to use reflection to copy object of similar type. For eg. PersonDO might have age, name and DOB, and PersonBO might have just name and DOB. Would it not be a good idea to copy over from PersonDO to PersonBO provided all variables match using reflection. It might sound dumb. But I don't like the various copy that we do, it literally fills up the java file.
    Any thoughts would be helpful.
    thanks
    --

    There is one pattern which I had developed for some same scenario.
    What you can do is that use the custom annotation to copy the fields from one object to another.
    Here is the example:
    Create a Custom Annotation:
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.FIELD})
    public @interface MyField {
    String name();
    ClassA {
    @MyField(name="CopyName")
    private String name;
    @MyField(name="CopyAge")
    private int age;
    ... getters and setters goes here
    ClassB{
    @MyField(name="CopyName")
    private String myName;
    @MyField(name="CopyAge")
    private int currentAge;
    Now you can copy the two different class based on the annotation using the reflection like this
    public void copyAtoB (ClassA objA, ClassB objB) {
    Field fields[] = objB.getClass().getDeclaredFields();
    for (Field f : fields) {
    Column annot = f.getAnnotation(MyField.class);
    if (annot != null) {
    Object tempobj = getValueFromObjectA(objA, f.getType(), annot.name()); // Needs to be implemented in same manner.
    String fieldName = f.getName();
    fieldName = "set" + fieldName.substring(0, 1).toUpperCase() + fieldName.substring(1);
    Method method = objB.getClass().getMethod(fieldName, f.getType());
    if (f.getType() == int.class) {
    method.invoke(objB, ((Integer) tempobj).intValue());
    } else {
    method.invoke(objB, tempobj);
    Note: Annotation name should be same for the fields which you want to copy.

  • Everytime I copy pages from one ID CS3 doc to another, it re-applies the master page objects!!

    Please Help,
    This is a topic I would really like to get to the bottom of.
    We have InDesign CS3 templates for creating our reports.
    These templates contain around 10 different master pages with grey placeholder image boxes and text boxes with dummy text.
    When we copy pages from one ID document to another, all the master page objects that were originally assigned to the pages are re-applied!!
    Resulting in lots of grey dummy boxes and text boxes re-appearing on top of the page items!!
    It's so annoying because we always customise the pages once we've pulled down master pages to work on, so when we copy pages across to other documents we have to apply the blank master to be able to kick out all the master objects easily.  Then we need to add the page numbers and footers back onto the blank master page.
    My question is, is there a way to switch this off, so when I move or copy pages from one document to another, nothing happens relating to master page objects, the pages simply just copy across as they are?
    Please help!  If not I may have to ask an external developer to write a script to fix this, it drives 900 of us crazy!
    thanks in advance for any help.
    Or am I just being ridiculous and not actually realising you can switch this off, doh!
    G

    Just a bit of further clarification on this issue (very few people really understand what's going on with master pages and overridden master page items):
    When you override a master page item, the object is moved to a local page, but a connection is maintained with the original master page item. This a) allows for the override to be removed (and return the object to its original state). This also, b) allows for changes made to the original master page item (other than the changes made to the local item from the point that it was overridden) to effect the local item as well.
    When the connection to the master page item cannot be maintained, the local item gets disconnected totally from the master page, and becomes a regular, run-of-the-mill page item.
    In light of this, there's three ways you can end up with duplicate master items:
    Reapplying a master page (or applying a new one). When you reapply a master, all overridden master page items get detached from the master, and the original mster page item appears again in its original state. Most of the time this produces unwanted duplication of objects. To fix up your page, you have two options: a) Delete the master page item, and b) copying the contents of the original to the new master page item. The disadvantage of "a" is that you end up with an item which is totally detached from the master, and changing the item on the master will have no effect on the local item. The disadavantage of "b" is that it's a lot of work...
    Moving a page to a different document. When you move a page to a different document which has the same master as the one originally applied, the master in the new doc is applied, and the effects are identical to reapplying a master page (i.e. overridden objects are detached). If the applied master (i.e. a master with the same name) does not exist in the new doc, the master is transferred over to the new doc along with the page, and the connections to the master page are preserved (well, re-created actually...). The workarounds in case #1 apply here as well.
    When page sides change in a document, the objects on the facing page appears.
    What happens here is a bit confusing, but here's an approximate explanation:
    When you apply a master to a page or spread in InDesign, what you are actually doing is applying an entire spread to an individual page. You can thing of a master spread as an overlay (or more precisely: underlay) on the page with a window cut out to the exact page dimensions.
    When the page side changes that "window cut-out" shifts to show the master spread items which correspond to the position within the spread of your current page (i.e. recto or verso). All objects which exist outside the window shift out of view (but still exist!).
    When an object is overridden, the position of the object is defined by its location on the local page, NOT its position on the master spread. When the page then changes sides, the object remains where it was on the page (even though the object it's connected to on the master spread moves out of the window of view). A corresponding object on the facing page of the master (if it exists) will then show in addition to the overridden one.
    Now remember: contrary to the first two cases, both objects are based on master ones: one visible one and one invisible one.
    Dealing with this third case requires much more care than the first two.
    The obvious way to deal with this would be similar to the first two, but if you remove the local object and transfer the content to the new maste object, the invisible master object on the non-visible page was actually removed, so when the page sides change again, the object will now be connected to the now-invisible master page item, and the correct master page item will be gone!
    The "correct" way to deal with this would be to transfer the content to the new master page item and remove overrides (not delete!) on the local item (which will make it disappear, because it moves back to the invisible page). Of course, when page sides change again, it becomes necessary to repeat the entire process.
    If the local object gets deleted, then your master spread is missing objects with no visible indicator of the fact. This can lead to confusion when the document might be edited at some later point in time.
    I believe that this complicated and un-intuitive behavior of master pages is part of the reason people tend to avoid using master page items. Documents tend to get messed up in really odd ways... It's a real shame, because extensive use of master page items has a lot of potential for streamlining workflows and saving an awful lot of time. This behavior really puts a damper on really using master pages as templates.
    Getting master page items to work the way they "should" was a big part of what I was trying to accomplish with AutoFlow Pro... When the master page items are defined as such (i.e. given a unique name), AutoFlow Pro solves all three of the above issues by keeping overridden master page items connected to the master page items on the currently applied master (and when a new master is applied as well!).
    (When I have a bit of spare time, I think I'll write this up on my blog with some visuals to make this easier to grasp...)
    Harbs

Maybe you are looking for